postgresql
This commit is contained in:
16
migrations/20231220222206_init.sql
Normal file
16
migrations/20231220222206_init.sql
Normal file
@ -0,0 +1,16 @@
|
||||
-- +goose Up
|
||||
-- +goose StatementBegin
|
||||
CREATE TABLE categories (
|
||||
id INTEGER NOT NULL PRIMARY KEY,
|
||||
parent_id INTEGER NOT NULL DEFAULT 0,
|
||||
title VARCHAR NOT NULL DEFAULT '',
|
||||
name VARCHAR NOT NULL DEFAULT '',
|
||||
flat_name VARCHAR NOT NULL DEFAULT '',
|
||||
level INTEGER NOT NULL DEFAULT 0
|
||||
);
|
||||
-- +goose StatementEnd
|
||||
|
||||
-- +goose Down
|
||||
-- +goose StatementBegin
|
||||
DROP TABLE categories;
|
||||
-- +goose StatementEnd
|
Reference in New Issue
Block a user