统一前后端代码格式化配置
This commit is contained in:
@@ -76,9 +76,7 @@ function assertMigrationFilesOrdered() {
|
||||
|
||||
const invalid = files.filter((name) => !MIGRATION_FILE_PATTERN.test(name))
|
||||
if (invalid.length > 0) {
|
||||
throw new Error(
|
||||
`迁移文件命名必须为 NNN_name.sql(三位序号),非法文件: ${invalid.join(', ')}`,
|
||||
)
|
||||
throw new Error(`迁移文件命名必须为 NNN_name.sql(三位序号),非法文件: ${invalid.join(', ')}`)
|
||||
}
|
||||
|
||||
const versions = files.map((name) => Number(name.slice(0, 3)))
|
||||
|
||||
Reference in New Issue
Block a user