Skip to content

Commit

Permalink
Set default value of client_address to ""
Browse files Browse the repository at this point in the history
  • Loading branch information
DarumaDocker committed Nov 19, 2024
1 parent b505ef0 commit 557e13b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions init-mysql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ CREATE TABLE devices (
version varchar(256) NOT NULL,
arch varchar(128) NOT NULL,
os varchar(128) NOT NULL,
client_address varchar(256) NOT NULL,
client_address varchar(256) DEFAULT "",
login_time TIMESTAMP,
meta JSON,
created_at TIMESTAMP DEFAULT NOW(),
Expand All @@ -28,7 +28,7 @@ CREATE TABLE node_status (
version varchar(256) NOT NULL,
arch varchar(128) NOT NULL,
os varchar(128) NOT NULL,
client_address varchar(256) NOT NULL,
client_address varchar(256) DEFAULT "",
geo_coordinates varchar(256) DEFAULT "",
location varchar(256) DEFAULT "",
country varchar(28) DEFAULT "",
Expand Down
4 changes: 2 additions & 2 deletions init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ CREATE TABLE devices (
version varchar NOT NULL,
arch varchar NOT NULL,
os varchar NOT NULL,
client_address varchar NOT NULL,
client_address varchar DEFAULT "",
login_time bigint,
meta text,
created_at bigint DEFAULT (strftime('%s', 'now')),
Expand All @@ -47,7 +47,7 @@ CREATE TABLE node_status (
version varchar NOT NULL,
arch varchar NOT NULL,
os varchar NOT NULL,
client_address varchar NOT NULL,
client_address varchar DEFAULT "",
geo_coordinates varchar DEFAULT "",
location varchar DEFAULT "",
country varchar DEFAULT "",
Expand Down

0 comments on commit 557e13b

Please sign in to comment.