Removes unused migrations
This commit is contained in:
parent
e6fae146a5
commit
051e84de86
5 changed files with 1 additions and 23 deletions
|
|
@ -1,5 +0,0 @@
|
||||||
local:
|
|
||||||
dialect: sqlite3
|
|
||||||
datasource: freed.db
|
|
||||||
dir: internal/database/migrations
|
|
||||||
table: gorp_migrations
|
|
||||||
|
|
@ -3,8 +3,7 @@ CREATE table feed (
|
||||||
id INTEGER PRIMARY KEY,
|
id INTEGER PRIMARY KEY,
|
||||||
name text NOT NULL,
|
name text NOT NULL,
|
||||||
url text NOT NULL UNIQUE,
|
url text NOT NULL UNIQUE,
|
||||||
userId text NOT NULL,
|
type text NOT NULL
|
||||||
FOREIGN KEY (userId) REFERENCES user(id)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
-- +migrate Down
|
-- +migrate Down
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
-- +migrate Up
|
|
||||||
CREATE table user (
|
|
||||||
id text PRIMARY KEY,
|
|
||||||
first_name text NOT NULL,
|
|
||||||
email text NOT NULL UNIQUE
|
|
||||||
);
|
|
||||||
|
|
||||||
-- +migrate Down
|
|
||||||
DROP TABLE user;
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
-- +migrate Up
|
|
||||||
ALTER TABLE feed
|
|
||||||
ADD COLUMN type text;
|
|
||||||
|
|
||||||
-- +migrate Down
|
|
||||||
ALTER TABLE feed
|
|
||||||
DROP COLUMN type;
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue