This commit is contained in:
Dull Bananas 2024-05-11 19:37:55 +00:00
parent 08ae13b877
commit 542f81d4f1
3 changed files with 14 additions and 6 deletions

View file

@ -1,6 +1,6 @@
DO $$
BEGIN
RAISE NOTICE 'migrations must be managed using lemmy_server instead of diesel CLI';
RAISE 'migrations must be managed using lemmy_server instead of diesel CLI';
END
$$;

View file

@ -1 +1,2 @@
drop table previously_run_sql;
DROP TABLE previously_run_sql;

View file

@ -1,5 +1,12 @@
drop schema if exists r cascade;
-- `content` can't be used as primary key because of size limit
create table previously_run_sql (id boolean primary key, content text);
insert into previously_run_sql (id, content) values (true, '');
DROP SCHEMA IF EXISTS r CASCADE;
CREATE TABLE previously_run_sql (
-- For compatibility with Diesel
id boolean PRIMARY KEY,
-- Too big to be used as primary key
content text NOT NULL
);
INSERT INTO previously_run_sql (id, content)
VALUES (TRUE, '');