Skip to content

Commit 1d04bcf

Browse files
SOIVclaude
andcommitted
refactor(migrations): core 마이그레이션 경로 db/migrations/core → migrations/core 단축
apps/api/src/db/migrations/core 의 불필요한 db/ 계층 제거. app.ts·setup.ts 경로 참조 동일하게 수정. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 22c581d commit 1d04bcf

8 files changed

Lines changed: 3 additions & 3 deletions

File tree

apps/api/src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export async function initDb(): Promise<DbProvider> {
155155

156156
export async function runMigrations(db: DbProvider): Promise<void> {
157157
const { FileMigrationRunner } = await import('@fieldstack/core');
158-
const coreDir = path.join(__dirname, 'db', 'migrations', 'core');
158+
const coreDir = path.join(__dirname, 'migrations', 'core');
159159
const runner = new FileMigrationRunner(db, 'core', coreDir);
160160
await runner.run();
161161
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

apps/api/src/db/migrations/core/004_add_user_modules.sql renamed to apps/api/src/migrations/core/004_add_user_modules.sql

File renamed without changes.

apps/api/src/db/migrations/core/005_add_user_language.sql renamed to apps/api/src/migrations/core/005_add_user_language.sql

File renamed without changes.
File renamed without changes.

apps/api/src/routes/setup.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ export function createSetupRouter(): Router {
237237
currentStep = 'db_migrate';
238238
emit({ step: 'db_migrate', status: 'running', message: '마이그레이션을 적용하는 중...' });
239239
const { FileMigrationRunner } = await import('@fieldstack/core');
240-
// __dirname: apps/api/src/routes → ../db/migrations/core
241-
const coreDir = path.join(__dirname, '..', 'db', 'migrations', 'core');
240+
// __dirname: apps/api/src/routes → ../migrations/core
241+
const coreDir = path.join(__dirname, '..', 'migrations', 'core');
242242
const runner = new FileMigrationRunner(db, 'core', coreDir);
243243
await runner.run();
244244
emit({ step: 'db_migrate', status: 'done', message: '마이그레이션 완료' });

0 commit comments

Comments
 (0)