mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-12-11 04:36:33 +00:00
5 lines
198 B
MySQL
5 lines
198 B
MySQL
|
-- This file should undo anything in `up.sql`
|
||
|
ALTER TABLE users ADD COLUMN is_admin BOOLEAN NOT NULL DEFAULT 'f';
|
||
|
UPDATE users SET is_admin = 't' WHERE role = 0;
|
||
|
ALTER TABLE users DROP COLUMN role;
|