From eba77eabc9b033ef3b904eec7737bc997db37596 Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Wed, 25 Nov 2020 13:30:04 +0100 Subject: Rev: 4712 --- .../mayor-portal/install/mayor-portal/mysql/mayor-portal.sql | 2 +- mayor-orig/mayor-portal/log/mayor-portal.rev | 2 +- mayor-orig/mayor-portal/update/rev004710-1-mayor_portal.sql | 12 ++++++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 mayor-orig/mayor-portal/update/rev004710-1-mayor_portal.sql (limited to 'mayor-orig/mayor-portal') diff --git a/mayor-orig/mayor-portal/install/mayor-portal/mysql/mayor-portal.sql b/mayor-orig/mayor-portal/install/mayor-portal/mysql/mayor-portal.sql index 61655882..f53e34a7 100644 --- a/mayor-orig/mayor-portal/install/mayor-portal/mysql/mayor-portal.sql +++ b/mayor-orig/mayor-portal/install/mayor-portal/mysql/mayor-portal.sql @@ -41,7 +41,7 @@ CREATE TABLE `hirek` ( `lang` varchar(5) default 'hu_HU', `cim` text, `txt` text, - `owner` varchar(10) default NULL, + `owner` varchar(255) default NULL, `flag` tinyint(3) unsigned NOT NULL default '0', `cid` tinyint(3) unsigned NOT NULL default '0', `pic` varchar(20) default NULL, diff --git a/mayor-orig/mayor-portal/log/mayor-portal.rev b/mayor-orig/mayor-portal/log/mayor-portal.rev index de4ba040..acbf96c3 100644 --- a/mayor-orig/mayor-portal/log/mayor-portal.rev +++ b/mayor-orig/mayor-portal/log/mayor-portal.rev @@ -1 +1 @@ -4710 +4712 diff --git a/mayor-orig/mayor-portal/update/rev004710-1-mayor_portal.sql b/mayor-orig/mayor-portal/update/rev004710-1-mayor_portal.sql new file mode 100644 index 00000000..5ac98672 --- /dev/null +++ b/mayor-orig/mayor-portal/update/rev004710-1-mayor_portal.sql @@ -0,0 +1,12 @@ +DELIMITER $$ +DROP PROCEDURE IF EXISTS upgrade_database_4710 $$ + +CREATE PROCEDURE upgrade_database_4710() +BEGIN +SET NAMES utf8 COLLATE utf8_hungarian_ci; + +ALTER TABLE `hirek` MODIFY `owner` varchar(255) DEFAULT NULL; + +END $$ +DELIMITER ; +CALL upgrade_database_4710(); -- cgit v1.2.3