remove sqlite3 migrations
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
-- +goose Up
|
||||
-- +goose StatementBegin
|
||||
CREATE TABLE articles (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
title VARCHAR(255) NOT NULL,
|
||||
sourceUrl VARCHAR(255) NOT NULL UNIQUE,
|
||||
author VARCHAR(255) NOT NULL,
|
||||
content TEXT NOT NULL,
|
||||
publishDate DATETIME NOT NULL,
|
||||
fetchDate DATETIME NOT NULL
|
||||
);
|
||||
-- +goose StatementEnd
|
||||
|
||||
-- +goose Down
|
||||
-- +goose StatementBegin
|
||||
DROP TABLE articles;
|
||||
-- +goose StatementEnd
|
||||
@@ -1,10 +0,0 @@
|
||||
-- +goose Up
|
||||
-- +goose StatementBegin
|
||||
CREATE VIRTUAL TABLE fts_articles USING fts5(id, content);
|
||||
INSERT INTO fts_articles (id, content) SELECT id, title || '\n' || author || '\n' || content FROM articles;
|
||||
-- +goose StatementEnd
|
||||
|
||||
-- +goose Down
|
||||
-- +goose StatementBegin
|
||||
DROP TABLE fts_articles;
|
||||
-- +goose StatementEnd
|
||||
@@ -1,13 +0,0 @@
|
||||
-- +goose Up
|
||||
-- +goose StatementBegin
|
||||
CREATE TABLE responses (
|
||||
url VARCHAR(255) NOT NULL UNIQUE PRIMARY KEY,
|
||||
content TEXT NOT NULL,
|
||||
fetchDate DATETIME DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
-- +goose StatementEnd
|
||||
|
||||
-- +goose Down
|
||||
-- +goose StatementBegin
|
||||
DROP TABLE responses;
|
||||
-- +goose StatementEnd
|
||||
@@ -1,9 +0,0 @@
|
||||
-- +goose Up
|
||||
-- +goose StatementBegin
|
||||
ALTER TABLE responses ADD COLUMN processed BOOLEAN DEFAULT false;
|
||||
-- +goose StatementEnd
|
||||
|
||||
-- +goose Down
|
||||
-- +goose StatementBegin
|
||||
ALTER TABLE responses DROP COLUMN processed;
|
||||
-- +goose StatementEnd
|
||||
Reference in New Issue
Block a user