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
+16
View File
@@ -0,0 +1,16 @@
-- P5-6282: use text tags for category translations
insert into "i18n-texts" (name, category)
select slug, 'article_categories' from article_categories;
insert into "i18n-texts_data" (textid, text, locale_id)
select
(select textid from "i18n-texts" where name = article_categories.slug and category = 'article_categories'),
article_categories_translations.name,
(select locale_id from market_locales where market_id = article_categories_translations.market_id)
from article_categories_translations
join article_categories on article_categories_translations.category_id = article_categories.id;
drop table article_categories_translations;