diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-08-14 20:13:31 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-08-14 20:13:31 -0700 |
commit | 03db89544ee1589300e497bd5064b72f357d0c80 (patch) | |
tree | c72330e4d3b5c9ecc3da22d1095eb30618db4d84 /rust | |
parent | 612d5c406a5a7e0d4fc7a697577ae908233ee275 (diff) | |
download | fatcat-03db89544ee1589300e497bd5064b72f357d0c80.tar.gz fatcat-03db89544ee1589300e497bd5064b72f357d0c80.zip |
cockroach: create active_editgroup_id index on editor table
Diffstat (limited to 'rust')
-rw-r--r-- | rust/migrations/2018-05-12-001226_init/up.sql | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rust/migrations/2018-05-12-001226_init/up.sql b/rust/migrations/2018-05-12-001226_init/up.sql index a8318f30..18139d30 100644 --- a/rust/migrations/2018-05-12-001226_init/up.sql +++ b/rust/migrations/2018-05-12-001226_init/up.sql @@ -16,6 +16,8 @@ CREATE TABLE editor ( active_editgroup_id UUID -- REFERENCES( editgroup(id) via ALTER below ); +CREATE INDEX active_editgroup_idx ON editor(active_editgroup_id); + CREATE TABLE editgroup ( id UUID PRIMARY KEY DEFAULT gen_random_uuid(), editor_id UUID REFERENCES editor(id) NOT NULL, |