mirror of
https://github.com/coder/coder.git
synced 2026-09-21 20:51:01 +08:00
fix: Extend migration fixture test with down and fix 000045 (#6130)
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
ALTER TABLE workspace_builds
|
||||
ADD COLUMN name character varying(64) NOT NULL;
|
||||
ADD COLUMN name character varying(64) NOT NULL DEFAULT '';
|
||||
|
||||
@@ -331,6 +331,10 @@ func TestMigrateUpWithFixtures(t *testing.T) {
|
||||
s.Add(table, count)
|
||||
}
|
||||
}
|
||||
|
||||
// Test that migration down is successful after up.
|
||||
err = migrations.Down(db)
|
||||
require.NoError(t, err, "final migration down should be successful")
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user