Files
database/migrations/000.200.sql
T

8 lines
310 B
SQL

-- 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);