Initial code test
This commit is contained in:
commit
d4fae15f5c
1696 files changed
+271223
No files matched your search
@@ -0,0 +1,14 @@
|
||||
-- migrate:up
|
||||
CREATE EXTENSION IF NOT EXISTS ltree;
|
||||
|
||||
CREATE TABLE categories (
|
||||
id SERIAL PRIMARY KEY,
|
||||
name TEXT NOT NULL,
|
||||
path ltree NOT NULL
|
||||
);
|
||||
|
||||
CREATE INDEX idx_categories_path_gist ON categories USING gist (path);
|
||||
|
||||
-- migrate:down
|
||||
DROP TABLE IF EXISTS categories;
|
||||
DROP EXTENSION IF EXISTS ltree;
|
||||
Reference in new issue
Block a user