mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-18 04:51:35 +03:00
fb1a0d286d
GitOrigin-RevId: fb6a3eb8cbe4604789938bcbc78916fbcd1af515
32 lines
895 B
YAML
32 lines
895 B
YAML
type: bulk
|
|
args:
|
|
|
|
|
|
# Tree table
|
|
- type: run_sql
|
|
args:
|
|
sql: |
|
|
CREATE EXTENSION IF NOT EXISTS ltree;
|
|
CREATE TABLE tree (path ltree);
|
|
INSERT INTO tree VALUES
|
|
('Tree'),
|
|
('Tree.Science'),
|
|
('Tree.Science.Astronomy'),
|
|
('Tree.Science.Astronomy.Astrophysics'),
|
|
('Tree.Science.Astronomy.Cosmology'),
|
|
('Tree.Hobbies'),
|
|
('Tree.Hobbies.Amateurs_Astronomy'),
|
|
('Tree.Collections'),
|
|
('Tree.Collections.Pictures'),
|
|
('Tree.Collections.Pictures.Astronomy'),
|
|
('Tree.Collections.Pictures.Astronomy.Stars'),
|
|
('Tree.Collections.Pictures.Astronomy.Galaxies'),
|
|
('Tree.Collections.Pictures.Astronomy.Astronauts');
|
|
CREATE INDEX path_gist_idx ON tree USING GIST (path);
|
|
CREATE INDEX path_idx ON tree USING BTREE (path);
|
|
|
|
- type: track_table
|
|
args:
|
|
schema: public
|
|
name: tree
|