-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
26 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
internal/db/testdata/invalidmigrations/002_add_invalid_table.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
internal/db/testdata/invalidmigrations/003_add_another_table.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
internal/db/testdata/validmigrations/003_add_another_table.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
internal/dbmodel/sql/postgres/003_cloud_credentials_cascade_on_delete.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
internal/dbmodel/sql/postgres/005_add_migrating_controller_column.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
-- 1_5.sql is a migration that adds a column necessary for model migrations | ||
-- adds a column necessary for model migrations | ||
|
||
ALTER TABLE models ADD COLUMN migration_controller_id INTEGER REFERENCES controllers (id); |
4 changes: 2 additions & 2 deletions
4
internal/dbmodel/sql/postgres/006_add_access_tokens_and_update_users_table.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
-- 1_7.sql is a migration that adds a UUID column to the groups table. | ||
-- adds a UUID column to the groups table. | ||
|
||
ALTER TABLE groups ADD COLUMN uuid TEXT NOT NULL UNIQUE; |
2 changes: 1 addition & 1 deletion
2
internal/dbmodel/sql/postgres/008_add_tls_hostname_to_controllers.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
-- 1_8.sql is a migration that adds a tls_hostname column to the controller table. | ||
-- adds a tls_hostname column to the controller table. | ||
|
||
ALTER TABLE controllers ADD COLUMN tls_hostname TEXT; |
4 changes: 2 additions & 2 deletions
4
internal/dbmodel/sql/postgres/009_remove_controller_soft_delete.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
-- 1_9.sql is a migration that deletes soft-deleted controllers and | ||
-- drops the deleted_at column from the controllers table. | ||
-- deletes soft-deleted controllers and drops the | ||
-- deleted_at column from the controllers table. | ||
|
||
DELETE FROM controllers WHERE deleted_at IS NOT null; | ||
ALTER TABLE controllers DROP COLUMN deleted_at; |
3 changes: 1 addition & 2 deletions
3
internal/dbmodel/sql/postgres/010_stricter_contraints_on_model_names.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
-- 1_10.sql is a migration that enforces a stricter uniqueness | ||
-- constraint on model names. | ||
-- enforces a stricter uniqueness constraint on model names. | ||
|
||
ALTER TABLE models DROP CONSTRAINT models_controller_id_owner_identity_name_name_key; | ||
ALTER TABLE models ADD CONSTRAINT unique_model_names UNIQUE(owner_identity_name, name); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
-- 1_11.sql is a migration that enforces uniqueness on URLs in application offers. | ||
-- enforces uniqueness on URLs in application offers. | ||
|
||
ALTER TABLE application_offers ADD UNIQUE (url); |
3 changes: 1 addition & 2 deletions
3
internal/dbmodel/sql/postgres/012_remove_group_soft_delete.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
-- 1_12.sql is a migration that deletes soft-deleted groups and | ||
-- drops the deleted_at column from the groups table. | ||
-- deletes soft-deleted groups and drops the deleted_at column from the groups table. | ||
|
||
DELETE FROM groups WHERE deleted_at IS NOT null; | ||
ALTER TABLE groups DROP COLUMN deleted_at; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
internal/dbmodel/sql/postgres/015_drop_controller_configs.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
-- 1_15.sql is a migration to delete controller configs | ||
-- delete controller configs table | ||
|
||
DROP TABLE controller_configs; |
2 changes: 1 addition & 1 deletion
2
internal/dbmodel/sql/postgres/016_drop_identity_model_defaults.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
-- 1_16.sql is a migration to delete identitymodel defaults | ||
-- delete identitymodel defaults table | ||
|
||
DROP TABLE identity_model_defaults; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
-- 1_18.sql drops the versions table | ||
-- deletes the versions table | ||
|
||
DROP TABLE IF EXISTS versions; |