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
+7
View File
@@ -0,0 +1,7 @@
-- P5-5329: clean up articles table after styla migration
-- fix broken name
update articles set name = '"Brokiga" at Photowall' where name = '"""Brokiga"" at Photowall"';
-- remove duplicate rows
DELETE FROM articles a USING articles b WHERE a.id < b.id AND (a.name = b.name and a.published = b.published);