mirror of
https://github.com/coder/coder.git
synced 2025-07-06 15:41:45 +00:00
feat: Add database fixtures for testing migrations (#4858)
This commit is contained in:
committed by
GitHub
parent
b97043850b
commit
e906d0dc54
911
coderd/database/migrations/testdata/fixtures/000022_initial_v0.6.6.up.sql
vendored
Normal file
911
coderd/database/migrations/testdata/fixtures/000022_initial_v0.6.6.up.sql
vendored
Normal file
File diff suppressed because one or more lines are too long
6
coderd/database/migrations/testdata/fixtures/000024_example.up.sql
vendored
Normal file
6
coderd/database/migrations/testdata/fixtures/000024_example.up.sql
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
-- Example:
|
||||
-- This fixture is applied after migrations/000024_site_config.up.sql
|
||||
-- and inserts a value into site_configs that must not cause issues in
|
||||
-- future migrations.
|
||||
|
||||
INSERT INTO site_configs (key, value) VALUES ('mytest', 'example');
|
922
coderd/database/migrations/testdata/full_dumps/v0.6.6/000022_dump_v0.6.6.up.sql
vendored
Normal file
922
coderd/database/migrations/testdata/full_dumps/v0.6.6/000022_dump_v0.6.6.up.sql
vendored
Normal file
File diff suppressed because one or more lines are too long
1991
coderd/database/migrations/testdata/full_dumps/v0.7.12/000028_dump_v0.7.12.up.sql
vendored
Normal file
1991
coderd/database/migrations/testdata/full_dumps/v0.7.12/000028_dump_v0.7.12.up.sql
vendored
Normal file
File diff suppressed because one or more lines are too long
2533
coderd/database/migrations/testdata/full_dumps/v0.8.15/000049_dump_v0.8.15.up.sql
vendored
Normal file
2533
coderd/database/migrations/testdata/full_dumps/v0.8.15/000049_dump_v0.8.15.up.sql
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user