2023-08-02 16:44:51 +00:00
|
|
|
ALTER TABLE person RENAME display_name TO preferred_username;
|
2021-04-01 17:57:45 +00:00
|
|
|
|
|
|
|
-- Regenerate the person_alias views
|
2023-08-02 16:44:51 +00:00
|
|
|
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;
|
|
|
|
|