lemmy/migrations/2021-02-02-153240_apub_columns/down.sql
Dull Bananas 5d8af0d476 fix
2024-05-17 20:21:13 +00:00

31 lines
498 B
SQL

DROP VIEW user_alias_1, user_alias_2;
ALTER TABLE community
DROP COLUMN followers_url;
ALTER TABLE community
DROP COLUMN inbox_url;
ALTER TABLE community
DROP COLUMN shared_inbox_url;
ALTER TABLE user_
DROP COLUMN inbox_url;
ALTER TABLE user_
DROP COLUMN shared_inbox_url;
-- Views are the same as before, except `*` does not reference the dropped columns
CREATE VIEW user_alias_1 AS
SELECT
*
FROM
user_;
CREATE VIEW user_alias_2 AS
SELECT
*
FROM
user_;