bazzar/db/migrate/202204191555_add_account_state.sql

9 lines
173 B
MySQL
Raw Normal View History

2022-04-19 16:49:30 +02:00
CREATE TYPE "AccountState" AS ENUM (
'active',
'suspended',
'banned'
);
ALTER TABLE accounts
ADD COLUMN state "AccountState" NOT NULL DEFAULT 'active';