lemmy/migrations/2021-04-01-173552_rename_preferred_username_to_display_name/up.sql

7 lines
246 B
SQL

alter table person rename preferred_username to display_name;
-- 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;