mirror of
https://github.com/Traceworks2023/nxtgauge-backend-rust.git
synced 2026-06-10 21:22:29 +00:00
12 lines
562 B
MySQL
12 lines
562 B
MySQL
|
|
-- Rollback: Remove added columns from departments
|
||
|
|
ALTER TABLE departments DROP COLUMN IF EXISTS code;
|
||
|
|
ALTER TABLE departments DROP COLUMN IF EXISTS description;
|
||
|
|
ALTER TABLE departments DROP COLUMN IF EXISTS department_head;
|
||
|
|
ALTER TABLE departments DROP COLUMN IF EXISTS department_email;
|
||
|
|
ALTER TABLE departments DROP COLUMN IF EXISTS visibility;
|
||
|
|
ALTER TABLE departments DROP COLUMN IF EXISTS transfers_enabled;
|
||
|
|
ALTER TABLE departments DROP COLUMN IF EXISTS updated_at;
|
||
|
|
|
||
|
|
DROP INDEX IF EXISTS idx_departments_code;
|
||
|
|
DROP INDEX IF EXISTS idx_departments_is_active;
|