mirror of https://github.com/coder/coder.git
fix: Extend migration fixture test with down and fix 000045 (#6130)
This commit is contained in:
parent
049984ce7f
commit
b46d0d693f
|
@ -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")
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue