This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
-- +goose Up
|
||||
-- +goose StatementBegin
|
||||
CREATE TABLE story_comment (
|
||||
id TEXT NOT NULL PRIMARY KEY,
|
||||
chapter_id TEXT NOT NULL,
|
||||
character_id TEXT NOT NULL,
|
||||
subject TEXT NOT NULL,
|
||||
author TEXT NOT NULL,
|
||||
character_name TEXT NOT NULL,
|
||||
source TEXT NOT NULL,
|
||||
created_date TIMESTAMP NOT NULL,
|
||||
fictional_date TIMESTAMP NOT NULL,
|
||||
edited_date TIMESTAMP NOT NULL
|
||||
);
|
||||
-- +goose StatementEnd
|
||||
|
||||
-- +goose Down
|
||||
-- +goose StatementBegin
|
||||
DROP TABLE story_comment;
|
||||
-- +goose StatementEnd
|
||||
@@ -0,0 +1,9 @@
|
||||
-- +goose Up
|
||||
-- +goose StatementBegin
|
||||
CREATE INDEX story_comment_index_chapter_id ON story_comment (chapter_id);
|
||||
-- +goose StatementEnd
|
||||
|
||||
-- +goose Down
|
||||
-- +goose StatementBegin
|
||||
DROP INDEX IF EXISTS story_comment_index_chapter_id;
|
||||
-- +goose StatementEnd
|
||||
Reference in New Issue
Block a user