From bf1aeb7191bfaa75f1acf47c675bc68b9fac1cd8 Mon Sep 17 00:00:00 2001 From: fx Date: Sat, 21 Oct 2023 21:11:28 +0200 Subject: add migrate macro --- migrations/20231009123228_devices.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'migrations/20231009123228_devices.sql') diff --git a/migrations/20231009123228_devices.sql b/migrations/20231009123228_devices.sql index 5856c3a..9d0c7ca 100644 --- a/migrations/20231009123228_devices.sql +++ b/migrations/20231009123228_devices.sql @@ -1,7 +1,7 @@ -- Add migration script here -CREATE TABLE "devices" +CREATE TABLE IF NOT EXISTS "devices" ( "id" TEXT PRIMARY KEY NOT NULL, "mac" TEXT NOT NULL, "broadcast_addr" TEXT NOT NULL -) \ No newline at end of file +) -- cgit v1.2.3