From 8f35cc9965c7c240797741024673a8f648cf79ff Mon Sep 17 00:00:00 2001 From: Marco Date: Mon, 12 Mar 2018 18:44:32 +0100 Subject: [PATCH] Optimize spacing in PostgreSQL schema --- Database/PostgreSQL.sql | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Database/PostgreSQL.sql b/Database/PostgreSQL.sql index c7b0a9b..067c2f0 100644 --- a/Database/PostgreSQL.sql +++ b/Database/PostgreSQL.sql @@ -25,9 +25,7 @@ CREATE TABLE IF NOT EXISTS "users_confirmations" ( "token" VARCHAR(255) NOT NULL, "expires" INTEGER NOT NULL CHECK ("expires" >= 0) ); - CREATE INDEX IF NOT EXISTS "email_expires" ON "users_confirmations" ("email", "expires"); - CREATE INDEX IF NOT EXISTS "user_id" ON "users_confirmations" ("user_id"); CREATE TABLE IF NOT EXISTS "users_remembered" ( @@ -37,7 +35,6 @@ CREATE TABLE IF NOT EXISTS "users_remembered" ( "token" VARCHAR(255) NOT NULL, "expires" INTEGER NOT NULL CHECK ("expires" >= 0) ); - CREATE INDEX IF NOT EXISTS "user" ON "users_remembered" ("user"); CREATE TABLE IF NOT EXISTS "users_resets" ( @@ -47,7 +44,6 @@ CREATE TABLE IF NOT EXISTS "users_resets" ( "token" VARCHAR(255) NOT NULL, "expires" INTEGER NOT NULL CHECK ("expires" >= 0) ); - CREATE INDEX IF NOT EXISTS "user_expires" ON "users_resets" ("user", "expires"); CREATE TABLE IF NOT EXISTS "users_throttling" ( @@ -56,7 +52,6 @@ CREATE TABLE IF NOT EXISTS "users_throttling" ( "replenished_at" INTEGER NOT NULL CHECK ("replenished_at" >= 0), "expires_at" INTEGER NOT NULL CHECK ("expires_at" >= 0) ); - CREATE INDEX IF NOT EXISTS "expires_at" ON "users_throttling" ("expires_at"); COMMIT;