mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-27 05:51:02 +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;
|