Archive old migrations (#426)

* Archive old migrations

* Fix invalid placement of migrations
This commit is contained in:
Rikard Bartholf
2024-10-17 11:19:12 +02:00
committed by GitHub
parent 763262c108
commit ddcbd0afb0
500 changed files with 0 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
-- P5-6131 Splashes belong to market_locale
ALTER TABLE slideshow_slides ADD COLUMN market_locale_id INTEGER REFERENCES market_locales (id);
UPDATE slideshow_slides SET market_locale_id = (
select id from market_locales
where slideshow_slides.market_id = market_locales.market_id
order by market_locales.id limit 1
);
ALTER TABLE slideshow_slides ALTER COLUMN market_locale_id SET NOT NULL;