Skip to content

Commit 30e58de

Browse files
committed
Add dash after order number in migration file name when adding migrations
1 parent 711b4c0 commit 30e58de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/migrations/add.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const addMigration = async (params: AddMigrationParams) => {
3838
? currentDate
3939
: params.order === undefined
4040
? undefined
41-
: padWithLeadingZeros(params.order, params.padWithLeadingZeros),
41+
: padWithLeadingZeros(params.order, params.padWithLeadingZeros) + "-",
4242
);
4343
const migrationData = params.type === "ts"
4444
? generateTypescriptMigration(params.timestamp ? currentDate : params.order)

0 commit comments

Comments
 (0)