From 60f9292ba7c8e572f701a4119972de64daefd1b7 Mon Sep 17 00:00:00 2001 From: Edoardo Spadoni Date: Wed, 28 Mar 2018 17:21:22 +0200 Subject: [PATCH] deploy. fix bad syntax in sql --- deploy/ansible/roles/icarodb/files/icaro.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deploy/ansible/roles/icarodb/files/icaro.sql b/deploy/ansible/roles/icarodb/files/icaro.sql index 3f1851bb8..20f353191 100644 --- a/deploy/ansible/roles/icarodb/files/icaro.sql +++ b/deploy/ansible/roles/icarodb/files/icaro.sql @@ -175,9 +175,9 @@ CREATE TABLE `sessions` ( `unit_id` bigint unsigned NOT NULL, `hotspot_id` bigint unsigned NOT NULL, `device_id` bigint unsigned NOT NULL, - `device_mac` varchar(200) unsigned NOT NULL, + `device_mac` varchar(200) NOT NULL, `user_id` bigint unsigned NOT NULL, - `username` varchar(500) unsigned NOT NULL, + `username` varchar(500) NOT NULL, `bytes_up` bigint unsigned, `bytes_down` bigint unsigned, `duration` bigint unsigned, @@ -196,9 +196,9 @@ CREATE TABLE `session_histories` ( `unit_id` bigint unsigned NOT NULL, `hotspot_id` bigint unsigned NOT NULL, `device_id` bigint unsigned NOT NULL, - `device_mac` varchar(200) unsigned NOT NULL, + `device_mac` varchar(200) NOT NULL, `user_id` bigint unsigned NOT NULL, - `username` varchar(500) unsigned NOT NULL, + `username` varchar(500) NOT NULL, `bytes_up` bigint unsigned, `bytes_down` bigint unsigned, `duration` bigint unsigned,