fix re-init of tables
This commit is contained in:
parent
26e6cd0b7e
commit
35cac7bb0d
@ -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
|
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,
|
device_id,
|
||||||
application_ids,
|
application_ids,
|
||||||
dev_eui,
|
dev_eui,
|
||||||
|
Loading…
Reference in New Issue
Block a user