Closed shanbady closed 1 week ago
Removes old tables that were left behind by legacy apps
This pr modifies a migration that is failing on deploy by prepending it with sql to remove conflicting tables
python manage.py migrate channels 0008
python manage.py dbshell
CREATE TABLE channels_channel ( widget_list_id integer, name varchar(40) ); alter table channels_channel add constraint fk_widgets_w foreign key (widget_list_id) references widgets_widgetlist (id);
@rhysyngsun is looking for other tables we need to add to this migration
What are the relevant tickets?
Removes old tables that were left behind by legacy apps
Description (What does it do?)
This pr modifies a migration that is failing on deploy by prepending it with sql to remove conflicting tables
How can this be tested?
python manage.py migrate channels 0008
python manage.py dbshell
and artificially create a channels table with a conflicting relation viaCREATE TABLE channels_channel ( widget_list_id integer, name varchar(40) ); alter table channels_channel add constraint fk_widgets_w foreign key (widget_list_id) references widgets_widgetlist (id);
Additional Context
@rhysyngsun is looking for other tables we need to add to this migration