mirror of
https://github.com/Kyren223/eko.git
synced 2026-08-26 09:31:34 +00:00
Network table schema bg_hex_color cannot be null
This commit is contained in:
@@ -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))
|
||||
);
|
||||
|
||||
@@ -11,7 +11,8 @@ INSERT INTO networks (
|
||||
id, owner_id, name, is_public,
|
||||
icon, bg_hex_color, fg_hex_color
|
||||
) VALUES (
|
||||
?, ?, ?, ?, ?, ?, ?
|
||||
?, ?, ?, ?,
|
||||
?, ?, ?
|
||||
)
|
||||
RETURNING *;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user