feat(training): add fields published and retired
This commit is contained in:
parent
79b7567627
commit
df41b45905
9 changed files with 131 additions and 50 deletions
|
|
@ -0,0 +1,3 @@
|
|||
ALTER TABLE training.trainings
|
||||
DROP COLUMN published,
|
||||
DROP COLUMN retired;
|
||||
6
db/migrations/002_training-published-and-retired.up.sql
Normal file
6
db/migrations/002_training-published-and-retired.up.sql
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
BEGIN;
|
||||
|
||||
ALTER TABLE training.trainings ADD COLUMN published BOOLEAN NOT NULL DEFAULT FALSE;
|
||||
ALTER TABLE training.trainings ADD COLUMN retired BOOLEAN NOT NULL DEFAULT FALSE;
|
||||
|
||||
COMMIT;
|
||||
Reference in a new issue