mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
11 lines
248 B
PL/PgSQL
Executable file
11 lines
248 B
PL/PgSQL
Executable file
-- 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;
|