]> Untitled Git - lemmy.git/blob - migrations/2021-03-31-105915_add_bot_account/up.sql
Fixing broken SQL migration formatting. (#3800)
[lemmy.git] / migrations / 2021-03-31-105915_add_bot_account / up.sql
1 -- Add the bot_account column to the person table
2 DROP VIEW person_alias_1, person_alias_2;
3
4 ALTER TABLE person
5     ADD COLUMN bot_account boolean NOT NULL DEFAULT FALSE;
6
7 CREATE VIEW person_alias_1 AS
8 SELECT
9     *
10 FROM
11     person;
12
13 CREATE VIEW person_alias_2 AS
14 SELECT
15     *
16 FROM
17     person;
18
19 -- Add the show_bot_accounts to the local user table as a setting
20 ALTER TABLE local_user
21     ADD COLUMN show_bot_accounts boolean NOT NULL DEFAULT TRUE;
22