aboutsummaryrefslogtreecommitdiffstats
path: root/rust/migrations/2018-05-12-001226_init/up.sql
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-08-19 16:45:51 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-08-19 16:45:51 -0700
commitbed06d8726a063e177ccd8a40554a799e0fdb1f1 (patch)
treece4d5b7fbb7cfdeeca2b2856a51900739ab27c03 /rust/migrations/2018-05-12-001226_init/up.sql
parent21fd7bd5d15850da942991bcdb7c00c3332231cc (diff)
downloadfatcat-bed06d8726a063e177ccd8a40554a799e0fdb1f1.tar.gz
fatcat-bed06d8726a063e177ccd8a40554a799e0fdb1f1.zip
add index on file_rev_url file_rev
Diffstat (limited to 'rust/migrations/2018-05-12-001226_init/up.sql')
-rw-r--r--rust/migrations/2018-05-12-001226_init/up.sql2
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 960623a3..a1de656d 100644
--- a/rust/migrations/2018-05-12-001226_init/up.sql
+++ b/rust/migrations/2018-05-12-001226_init/up.sql
@@ -145,6 +145,8 @@ CREATE TABLE file_rev_url (
url TEXT NOT NULL
);
+CREATE INDEX file_rev_url_rev_idx ON file_rev_url(file_rev);
+
CREATE TABLE file_ident (
id UUID PRIMARY KEY DEFAULT uuid_generate_v4(),
is_live BOOL NOT NULL DEFAULT false,