From e150afc00bcc6ca2c70aa95e56424fe1c7eacda3 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Sun, 22 Jan 2017 17:05:14 +0100 Subject: [PATCH] Fix sql syntax error in previous commit. --- backend/resources/migrations/0002.auth.up.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/resources/migrations/0002.auth.up.sql b/backend/resources/migrations/0002.auth.up.sql index 320e2e3d2..4ec704f84 100644 --- a/backend/resources/migrations/0002.auth.up.sql +++ b/backend/resources/migrations/0002.auth.up.sql @@ -24,12 +24,12 @@ VALUES ('00000000-0000-0000-0000-000000000000'::uuid, ''::bytea); CREATE UNIQUE INDEX users_username_idx - ON users WHERE deleted_at is null - USING btree (username) ; + ON users USING btree (username) + WHERE deleted_at is null; CREATE UNIQUE INDEX users_email_idx - ON users WHERE deleted_at is null - USING btree (email); + ON users USING btree (email) + WHERE deleted_at is null; CREATE TRIGGER users_modified_at_tgr BEFORE UPDATE ON users FOR EACH ROW EXECUTE PROCEDURE update_modified_at();