Dominic Grimm
b2d813b67a
All checks were successful
continuous-integration/drone/push Build is passing
15 lines
No EOL
352 B
SQL
15 lines
No EOL
352 B
SQL
-- +micrate Up
|
|
-- SQL in section 'Up' is executed when this migration is applied
|
|
CREATE TYPE user_roles AS ENUM ('Admin', 'Teacher', 'Student');
|
|
|
|
ALTER TABLE
|
|
users
|
|
ADD
|
|
COLUMN role user_roles NOT NULL;
|
|
|
|
-- +micrate Down
|
|
-- SQL section 'Down' is executed when this migration is rolled back
|
|
ALTER TABLE
|
|
users DROP COLUMN role;
|
|
|
|
DROP TYPE user_roles; |