lemmy/migrations/2021-04-01-173552_rename_pr.../down.sql

18 lines
265 B
SQL

ALTER TABLE person RENAME display_name TO preferred_username;
-- Regenerate the person_alias views
DROP VIEW person_alias_1, person_alias_2;
CREATE VIEW person_alias_1 AS
SELECT
*
FROM
person;
CREATE VIEW person_alias_2 AS
SELECT
*
FROM
person;