From 49ea3d630ba72a68cd55d9bdb2d9af30b062c6a4 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Tue, 26 Nov 2024 11:35:56 +0200 Subject: Network table schema bg_hex_color cannot be null --- migrations/20241026174345_init.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'migrations') diff --git a/migrations/20241026174345_init.sql b/migrations/20241026174345_init.sql index 366d338..d20898a 100644 --- a/migrations/20241026174345_init.sql +++ b/migrations/20241026174345_init.sql @@ -28,7 +28,7 @@ CREATE TABLE networks ( owner_id INT NOT NULL REFERENCES users (id), name TEXT NOT NULL, icon TEXT NOT NULL, - bg_hex_color TEXT, + bg_hex_color TEXT NOT NULL, fg_hex_color TEXT NOT NULL, is_public BOOLEAN NOT NULL CHECK (is_public IN (0, 1)) ); -- cgit v1.3.1