From bbc43f9fd84a84979a297efb4827d6e7a4b0ca14 Mon Sep 17 00:00:00 2001 From: Peter Broadhurst Date: Sun, 27 Mar 2022 18:47:33 -0400 Subject: [PATCH] Created timestamp index on events shouldn't be unique Signed-off-by: Peter Broadhurst --- db/migrations/postgres/000011_create_events_table.up.sql | 2 +- db/migrations/sqlite/000011_create_events_table.up.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/db/migrations/postgres/000011_create_events_table.up.sql b/db/migrations/postgres/000011_create_events_table.up.sql index 95923815a6..60bbf27a06 100644 --- a/db/migrations/postgres/000011_create_events_table.up.sql +++ b/db/migrations/postgres/000011_create_events_table.up.sql @@ -9,6 +9,6 @@ CREATE TABLE events ( ); CREATE UNIQUE INDEX events_id ON events(id); -CREATE UNIQUE INDEX events_created ON events(created); +CREATE INDEX events_created ON events(created); COMMIT; \ No newline at end of file diff --git a/db/migrations/sqlite/000011_create_events_table.up.sql b/db/migrations/sqlite/000011_create_events_table.up.sql index 2d3f3a6b25..ef42f8a8ba 100644 --- a/db/migrations/sqlite/000011_create_events_table.up.sql +++ b/db/migrations/sqlite/000011_create_events_table.up.sql @@ -8,5 +8,5 @@ CREATE TABLE events ( ); CREATE UNIQUE INDEX events_id ON events(id); -CREATE UNIQUE INDEX events_created ON events(created); +CREATE INDEX events_created ON events(created);