Fix data type for data_value in databases (#1054)

Signed-off-by: Ivan Milošević <iva@blokovi.com>
This commit is contained in:
Ivan Milošević 2020-03-03 15:35:26 +01:00 committed by GitHub
parent 5e145858f1
commit cc90f568b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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,