File tree 2 files changed +14
-0
lines changed
store/shared/migrate/postgres
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -200,6 +200,10 @@ var migrations = []struct {
200
200
name : "create-new-table-cards" ,
201
201
stmt : createNewTableCards ,
202
202
},
203
+ {
204
+ name : "alter-table-builds-alter-column-deploy-id" ,
205
+ stmt : alterTableBuildsAlterColumnDeployId ,
206
+ },
203
207
}
204
208
205
209
// Migrate performs the database migration. If the migration fails
@@ -769,3 +773,9 @@ CREATE TABLE IF NOT EXISTS cards
769
773
FOREIGN KEY (card_id) REFERENCES steps (step_id) ON DELETE CASCADE
770
774
);
771
775
`
776
+ var alterTableBuildsAlterColumnDeployId = `
777
+ ALTER TABLE builds
778
+ ALTER COLUMN build_deploy_id SET DATA TYPE BIGINT,
779
+ ALTER COLUMN build_deploy_id SET NOT NULL,
780
+ ALTER COLUMN build_deploy_id SET DEFAULT 0;
781
+ `
Original file line number Diff line number Diff line change
1
+ ALTER TABLE builds
2
+ ALTER COLUMN build_deploy_id SET DATA TYPE BIGINT ,
3
+ ALTER COLUMN build_deploy_id SET NOT NULL ,
4
+ ALTER COLUMN build_deploy_id SET DEFAULT 0 ;
You can’t perform that action at this time.
0 commit comments