lemmy/migrations/2020-12-17-030456_create_al.../up.sql

22 lines
301 B
SQL

-- Some view that act as aliases
-- unfortunately necessary, since diesel doesn't have self joins
-- or alias support yet
CREATE VIEW user_alias_1 AS
SELECT
*
FROM
user_;
CREATE VIEW user_alias_2 AS
SELECT
*
FROM
user_;
CREATE VIEW comment_alias_1 AS
SELECT
*
FROM
comment;