统一前后端代码格式化配置
This commit is contained in:
@@ -40,7 +40,11 @@ async function main() {
|
||||
|
||||
let appliedNames = new Set<string>()
|
||||
try {
|
||||
const result = await query<{ name: string | null; filename: string | null; run_on: string | null }>(
|
||||
const result = await query<{
|
||||
name: string | null
|
||||
filename: string | null
|
||||
run_on: string | null
|
||||
}>(
|
||||
`
|
||||
SELECT name, filename, run_on
|
||||
FROM schema_migrations
|
||||
@@ -49,9 +53,7 @@ async function main() {
|
||||
)
|
||||
|
||||
appliedNames = new Set(
|
||||
result.rows
|
||||
.map((row) => normalizeMigrationName(row.filename || row.name))
|
||||
.filter(Boolean),
|
||||
result.rows.map((row) => normalizeMigrationName(row.filename || row.name)).filter(Boolean),
|
||||
)
|
||||
} catch (error) {
|
||||
const message = error instanceof Error ? error.message : String(error)
|
||||
|
||||
Reference in New Issue
Block a user