Permalink
Browse files

CREATE INDEX

  • Loading branch information...
mirakui committed Oct 31, 2015
1 parent 0d61b53 commit 1cf0deef06c07148586bedda625e17cc2d34ebb0
Showing with 4 additions and 0 deletions.
  1. +4 −0 5f/webapp/sql/schema.sql
View
@@ -13,6 +13,8 @@ CREATE TABLE users (
grade grades
);
+CREATE INDEX idx_email_passhash ON users (email,passhash);
+
-- CREATE EXTENSION pgcrypto;
CREATE TYPE token_types AS ENUM ('header', 'param');
@@ -29,3 +31,5 @@ CREATE TABLE subscriptions (
user_id INTEGER REFERENCES users (id) NOT NULL PRIMARY KEY,
arg TEXT
);
+
+CREATE INDEX idx_user_id ON subscriptions (user_id);

0 comments on commit 1cf0dee

Please sign in to comment.