mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
add status to user table
This commit is contained in:
parent
48676c0857
commit
a97c3286bf
2 changed files with 22 additions and 0 deletions
11
packages/db/migrations/0088.do.add_status_to_user.sql
Executable file
11
packages/db/migrations/0088.do.add_status_to_user.sql
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
-- Type: DO
|
||||
-- Name: add_status_to_user
|
||||
-- Description: Add status to user table
|
||||
|
||||
BEGIN;
|
||||
|
||||
CREATE TYPE user_status_type AS ENUM ('ACTIVE', 'PENDING');
|
||||
|
||||
ALTER TABLE omnivore.user ADD COLUMN status user_status_type NOT NULL DEFAULT 'ACTIVE';
|
||||
|
||||
COMMIT;
|
||||
11
packages/db/migrations/0088.undo.add_status_to_user.sql
Executable file
11
packages/db/migrations/0088.undo.add_status_to_user.sql
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
-- Type: UNDO
|
||||
-- Name: add_status_to_user
|
||||
-- Description: Add status to user table
|
||||
|
||||
BEGIN;
|
||||
|
||||
DROP TYPE IF EXISTS user_status_type CASCADE;
|
||||
|
||||
ALTER TABLE omnivore.user DROP COLUMN IF EXISTS status;
|
||||
|
||||
COMMIT;
|
||||
Loading…
Reference in a new issue