forked from sneak/upaas
fix: rename 000.sql to 000_migration.sql and wrap legacy conversion in transaction
- Rename bootstrap migration from 000.sql to 000_migration.sql per REPO_POLICIES.md naming convention (NNN_description.sql pattern) - Update all hardcoded references in migrations.go - Wrap rebuildMigrationsTable() DROP/CREATE/INSERT sequence in a single transaction for crash safety - Update test case filename to match renamed file
This commit is contained in:
@@ -20,7 +20,7 @@ func TestParseMigrationVersion(t *testing.T) {
|
||||
wantVersion int
|
||||
wantErr bool
|
||||
}{
|
||||
{filename: "000.sql", wantVersion: 0},
|
||||
{filename: "000_migration.sql", wantVersion: 0},
|
||||
{filename: "001_initial.sql", wantVersion: 1},
|
||||
{filename: "002_remove_container_id.sql", wantVersion: 2},
|
||||
{filename: "007_add_resource_limits.sql", wantVersion: 7},
|
||||
|
||||
Reference in New Issue
Block a user