From 492b181d5123bd8a47339c9bdfc9cae3e1b3319c Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Sun, 9 Oct 2016 19:31:24 +0200 Subject: [PATCH] SQL, upgrade: increase session table ip field size for IPv6 addresses Commit 84d06edb06 introduced IPv6 support on SQL session table but failed at providing upgrade SQL scripts, this commit fixes it. Fixes: 84d06edb06 ("IPv6 Compatability") Signed-off-by: Sylvain Rochet --- SQL/mssql/2016100900.sql | 2 ++ SQL/mysql/2016100900.sql | 1 + SQL/oracle/2016100900.sql | 1 + SQL/postgres/2016100900.sql | 1 + 4 files changed, 5 insertions(+) create mode 100644 SQL/mssql/2016100900.sql create mode 100644 SQL/mysql/2016100900.sql create mode 100644 SQL/oracle/2016100900.sql create mode 100644 SQL/postgres/2016100900.sql diff --git a/SQL/mssql/2016100900.sql b/SQL/mssql/2016100900.sql new file mode 100644 index 000000000..38b359a48 --- /dev/null +++ b/SQL/mssql/2016100900.sql @@ -0,0 +1,2 @@ +ALTER TABLE [dbo].[session] ALTER COLUMN [ip] [varchar] (40) COLLATE Latin1_General_CI_AI NOT NULL +GO diff --git a/SQL/mysql/2016100900.sql b/SQL/mysql/2016100900.sql new file mode 100644 index 000000000..ea096e9f9 --- /dev/null +++ b/SQL/mysql/2016100900.sql @@ -0,0 +1 @@ +ALTER TABLE `session` MODIFY `ip` varchar(40) NOT NULL; diff --git a/SQL/oracle/2016100900.sql b/SQL/oracle/2016100900.sql new file mode 100644 index 000000000..e92e7eb91 --- /dev/null +++ b/SQL/oracle/2016100900.sql @@ -0,0 +1 @@ +ALTER TABLE session MODIFY ip varchar(41) NOT NULL; diff --git a/SQL/postgres/2016100900.sql b/SQL/postgres/2016100900.sql new file mode 100644 index 000000000..8eb7eedac --- /dev/null +++ b/SQL/postgres/2016100900.sql @@ -0,0 +1 @@ +ALTER TABLE session ALTER COLUMN ip TYPE character varying(41);