Fix data type for data_value in databases (#1054)
Signed-off-by: Ivan Milošević <iva@blokovi.com>
This commit is contained in:
parent
5e145858f1
commit
cc90f568b6
|
@ -16,7 +16,7 @@ const table = `CREATE TABLE IF NOT EXISTS messages (
|
||||||
value double,
|
value double,
|
||||||
string_value text,
|
string_value text,
|
||||||
bool_value boolean,
|
bool_value boolean,
|
||||||
data_value text,
|
data_value blob,
|
||||||
sum double,
|
sum double,
|
||||||
time double,
|
time double,
|
||||||
update_time double,
|
update_time double,
|
||||||
|
|
|
@ -59,7 +59,7 @@ func migrateDB(db *sqlx.DB) error {
|
||||||
value FLOAT,
|
value FLOAT,
|
||||||
string_value TEXT,
|
string_value TEXT,
|
||||||
bool_value BOOL,
|
bool_value BOOL,
|
||||||
data_value TEXT,
|
data_value BYTEA,
|
||||||
sum FLOAT,
|
sum FLOAT,
|
||||||
time FLOAT,
|
time FLOAT,
|
||||||
update_time FLOAT,
|
update_time FLOAT,
|
||||||
|
|
Loading…
Reference in New Issue