PW-844 Prevent empty category names in database

This commit is contained in:
Rikard Bartholf
2017-05-16 12:41:22 +02:00
parent 0d24923192
commit 739029cebc
+6
View File
@@ -0,0 +1,6 @@
-- PW-844
UPDATE category_texts
SET name = wallpaper_name
WHERE name IS null;
ALTER TABLE category_texts ALTER COLUMN name SET NOT NULL;