This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
-- +goose Up
|
||||
-- +goose StatementBegin
|
||||
CREATE TABLE story_chapter (
|
||||
id TEXT NOT NULL PRIMARY KEY,
|
||||
story_id TEXT NOT NULL,
|
||||
title TEXT NOT NULL,
|
||||
author TEXT NOT NULL,
|
||||
source TEXT NOT NULL,
|
||||
created_date TIMESTAMP NOT NULL,
|
||||
fictional_date TIMESTAMP NOT NULL,
|
||||
edited_date TIMESTAMP NOT NULL,
|
||||
comment_mode TEXT NOT NULL,
|
||||
comments_locked BOOLEAN NOT NULL
|
||||
);
|
||||
-- +goose StatementEnd
|
||||
|
||||
-- +goose Down
|
||||
-- +goose StatementBegin
|
||||
DROP TABLE story_chapter;
|
||||
-- +goose StatementEnd
|
||||
@@ -0,0 +1,9 @@
|
||||
-- +goose Up
|
||||
-- +goose StatementBegin
|
||||
CREATE INDEX story_chapter_index_story_id ON story_chapter (story_id);
|
||||
-- +goose StatementEnd
|
||||
|
||||
-- +goose Down
|
||||
-- +goose StatementBegin
|
||||
DROP INDEX IF EXISTS story_chapter_index_story_id;
|
||||
-- +goose StatementEnd
|
||||
Reference in New Issue
Block a user