From 93ecd24c51a6a04eeb676b993bf8ae496e34e814 Mon Sep 17 00:00:00 2001 From: norohind <60548839+norohind@users.noreply.github.com> Date: Tue, 2 Nov 2021 20:01:20 +0300 Subject: [PATCH] Fix no if not exists for new index --- sql_schema.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql_schema.sql b/sql_schema.sql index a651130..d0f9d79 100644 --- a/sql_schema.sql +++ b/sql_schema.sql @@ -101,7 +101,7 @@ where inserted_timestamp in ( group by squad_id) group by squad_id; -create index idx_squads_states_0 on squads_states (squad_id); +create index if not exists idx_squads_states_0 on squads_states (squad_id); create view if not exists squads_view_2 as