Skip to content

Commit

Permalink
Refactor the LibreSpeed data types
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderfefelov committed Oct 18, 2020
1 parent 117b4de commit dc78788
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions librespeed/init/initialize-database.sql
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
CREATE DATABASE $DB_DATABASE;
USE $DB_DATABASE;
CREATE TABLE speedtest_users( -- https://github.com/librespeed/speedtest-go/blob/master/database/mysql/telemetry_mysql.sql
CREATE TABLE speedtest_users( -- Based on https://github.com/librespeed/speedtest-go/blob/master/database/mysql/telemetry_mysql.sql
id int(11) NOT NULL AUTO_INCREMENT,
timestamp timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
ip text NOT NULL,
ip tinytext NOT NULL, -- FIXME
ispinfo text,
extra text,
ua text NOT NULL,
lang text NOT NULL,
dl text,
ul text,
ping text,
jitter text,
log longtext,
uuid text,
ua text,
lang tinytext,
dl float NOT NULL,
ul float NOT NULL,
ping float NOT NULL,
jitter float NOT NULL,
log text,
uuid tinytext NOT NULL,
PRIMARY KEY (id)
);
CREATE USER IF NOT EXISTS '$DB_USERNAME'@'%' IDENTIFIED WITH mysql_native_password BY '$DB_PASSWORD';
Expand Down

0 comments on commit dc78788

Please sign in to comment.