owpengram-server/deploy/migrations/0024_user_birthday_personal_channel.up.sql

8 lines
590 B
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- account.updateBirthday / account.updatePersonalChannel个人资料里的「生日」与「个人频道」。
-- 生日存月/日/年(全 0 表示未设置year=0 表示只填月日不含年份);个人频道存目标频道 id
-- 0 表示未设置/已清除),资料投影时按 id 取频道对象与其最新一帖 id。
ALTER TABLE public.users
ADD COLUMN birthday_day integer DEFAULT 0 NOT NULL,
ADD COLUMN birthday_month integer DEFAULT 0 NOT NULL,
ADD COLUMN birthday_year integer DEFAULT 0 NOT NULL,
ADD COLUMN personal_channel_id bigint DEFAULT 0 NOT NULL;