From 35cac7bb0da5a02f35d1ed382f7d225768276e24f9041bff0447c008462f85bd Mon Sep 17 00:00:00 2001 From: localhorst Date: Mon, 30 Dec 2024 19:10:46 +0100 Subject: [PATCH] fix re-init of tables --- server/sql/tables.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/sql/tables.sql b/server/sql/tables.sql index 75618d2..abe6c56 100644 --- a/server/sql/tables.sql +++ b/server/sql/tables.sql @@ -13,7 +13,7 @@ CREATE TABLE IF NOT EXISTS lp_ttn_end_device_uplinks ( updated_at_utc TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); -CREATE UNIQUE INDEX idx_unique_device ON lp_ttn_end_device_uplinks ( +CREATE UNIQUE INDEX IF NOT EXISTS idx_unique_device ON lp_ttn_end_device_uplinks ( device_id, application_ids, dev_eui,