From 7c9aec85a2f04d3c14853a02158210d8218a48c3 Mon Sep 17 00:00:00 2001 From: Snootic Date: Fri, 26 Jul 2024 20:46:39 -0300 Subject: [PATCH] feat: transform mac address from locals into unique key --- src/main/resources/db/migration/V3__create-table-locals.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/db/migration/V3__create-table-locals.sql b/src/main/resources/db/migration/V3__create-table-locals.sql index 8b3dfee..a5c2431 100644 --- a/src/main/resources/db/migration/V3__create-table-locals.sql +++ b/src/main/resources/db/migration/V3__create-table-locals.sql @@ -1,7 +1,7 @@ create table if not exists locals( id bigint not null auto_increment, name varchar(255) not null, - mac varchar(255) not null, + mac varchar(255) not null UNIQUE, dtcreate datetime not null, dtupdate datetime,