From 141bc10901231a5dc95da53d7b2befe56936ad43 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Sat, 7 Nov 2015 18:35:49 +0100 Subject: [PATCH] DB/Setup * allow "build" and "sql" fields to be NULL in ?_dbversion --- setup/db_structure.sql | 6 +++--- setup/updates/1446917082_01.sql | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 setup/updates/1446917082_01.sql diff --git a/setup/db_structure.sql b/setup/db_structure.sql index 57a413dd..a50def6d 100644 --- a/setup/db_structure.sql +++ b/setup/db_structure.sql @@ -542,8 +542,8 @@ DROP TABLE IF EXISTS `aowow_dbversion`; CREATE TABLE `aowow_dbversion` ( `date` int(10) unsigned NOT NULL DEFAULT '0', `part` tinyint(3) unsigned NOT NULL DEFAULT '0', - `sql` text NOT NULL, - `build` text NOT NULL + `sql` text NULL, + `build` text NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; @@ -2456,7 +2456,7 @@ UNLOCK TABLES; LOCK TABLES `aowow_dbversion` WRITE; /*!40000 ALTER TABLE `aowow_dbversion` DISABLE KEYS */; -INSERT INTO `aowow_dbversion` VALUES (1446293928,0,NULL,NULL); +INSERT INTO `aowow_dbversion` VALUES (1446917082,0,NULL,NULL); /*!40000 ALTER TABLE `aowow_dbversion` ENABLE KEYS */; UNLOCK TABLES; diff --git a/setup/updates/1446917082_01.sql b/setup/updates/1446917082_01.sql new file mode 100644 index 00000000..a82aebdb --- /dev/null +++ b/setup/updates/1446917082_01.sql @@ -0,0 +1,3 @@ +ALTER TABLE `aowow_dbversion` + CHANGE COLUMN `sql` `sql` TEXT NULL AFTER `part`, + CHANGE COLUMN `build` `build` TEXT NULL AFTER `sql`;