Commit b8b65422 authored by Matthias Larisch's avatar Matthias Larisch

DB migrations to satisfy django backend

parent 7b614c6f
Pipeline #10629130 failed with stage
in 3 minutes and 34 seconds
ALTER TABLE fs_foodsaver MODIFY COLUMN last_pass datetime NULL;
ALTER TABLE fs_foodsaver MODIFY COLUMN mailbox_id INT unsigned NULL;
ALTER TABLE fs_foodsaver MODIFY COLUMN sleep_from datetime NULL;
ALTER TABLE fs_foodsaver MODIFY COLUMN sleep_until datetime NULL;
ALTER TABLE fs_foodsaver MODIFY COLUMN sleep_msg TEXT NULL;
ALTER TABLE fs_foodsaver DROP COLUMN last_mid;
ALTER TABLE fs_betrieb_team MODIFY COLUMN stat_last_update datetime NULL;
ALTER TABLE fs_betrieb_team MODIFY COLUMN stat_first_fetch date NULL;
ALTER TABLE fs_betrieb_team MODIFY COLUMN stat_last_fetch date NULL;
ALTER TABLE fs_betrieb_team MODIFY COLUMN stat_add_date date NULL;
ALTER TABLE fs_betrieb_team DROP PRIMARY KEY;
ALTER TABLE fs_betrieb_team ADD COLUMN id INT unsigned AUTO_INCREMENT PRIMARY KEY;
ALTER TABLE fs_betrieb_team ADD UNIQUE KEY (foodsaver_id, betrieb_id);
ALTER TABLE fs_conversation MODIFY COLUMN last_message TEXT NULL;
ALTER TABLE fs_conversation MODIFY COLUMN member TEXT NULL;
ALTER TABLE fs_foodsaver_has_conversation DROP PRIMARY KEY;
ALTER TABLE fs_foodsaver_has_conversation ADD COLUMN id INT unsigned AUTO_INCREMENT PRIMARY KEY;
ALTER TABLE fs_foodsaver_has_conversation ADD UNIQUE KEY (foodsaver_id, conversation_id);
ALTER TABLE fs_abholer DROP PRIMARY KEY;
ALTER TABLE fs_abholer ADD COLUMN id INT unsigned AUTO_INCREMENT PRIMARY KEY;
ALTER TABLE fs_abholer ADD UNIQUE KEY (foodsaver_id, betrieb_id, `date`);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment