move from file storage to sqlite3
This commit is contained in:
17
assets/migrations/20250102152758_article.sql
Normal file
17
assets/migrations/20250102152758_article.sql
Normal file
@@ -0,0 +1,17 @@
|
||||
-- +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
|
||||
Reference in New Issue
Block a user