lemmy/migrations/2021-02-02-153240_apub_columns/down.sql

31 lines
498 B
MySQL
Raw Normal View History

2024-05-17 20:21:13 +00:00
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;
2024-05-17 20:21:13 +00:00
-- 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_;