10 lines
221 B
MySQL
10 lines
221 B
MySQL
|
-- Up
|
||
|
|
||
|
UPDATE users SET roles = '*' WHERE roles = 'admin';
|
||
|
UPDATE users SET roles = '' WHERE roles = 'user';
|
||
|
|
||
|
-- Down
|
||
|
|
||
|
UPDATE users SET roles = 'admin' WHERE roles = '*';
|
||
|
UPDATE users SET roles = 'user' WHERE roles = '';
|