Files
api/database/postgres/migrations/20210321134051_create_table_character.sql
T
2021-03-21 20:53:21 +01:00

18 lines
392 B
SQL

-- +goose Up
-- +goose StatementBegin
CREATE TABLE data_character (
id CHAR(8) NOT NULL PRIMARY KEY,
nicks TEXT[] NOT NULL,
name TEXT NOT NULL,
short_name TEXT NOT NULL,
author TEXT NOT NULL,
description TEXT NOT NULL,
ts_vector TSVECTOR NOT NULL
);
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP TABLE data_character;
-- +goose StatementEnd