openvk/install/sqls/00027-better-birthdays.sql
Alexander Minkin 5710d131fd
SQL: Reorder migration files
The issue was that numbers were duplicating, so I decided to fix them
2023-09-23 01:18:33 +03:00

3 lines
222 B
SQL

ALTER TABLE `profiles` ADD COLUMN `birthday_privacy` TINYINT(3) UNSIGNED NOT NULL DEFAULT 0;
UPDATE `profiles` SET `birthday_privacy` = 2 WHERE `birthday` = 0;
UPDATE `profiles` SET `birthday` = NULL WHERE `birthday` = 0;