starchart/db/db-sqlx-sqlite/migrations/20230228083200_starchart_introducer.sql

8 lines
259 B
SQL

CREATE TABLE IF NOT EXISTS starchart_introducer (
ID INTEGER PRIMARY KEY NOT NULL,
instance_url TEXT NOT NULL UNIQUE
);
ALTER TABLE starchart_forges ADD COLUMN starchart_instance INTEGER REFERENCES
starchart_introducer(ID) ON DELETE CASCADE DEFAULT NULL;