* allow "build" and "sql" fields to be NULL in ?_dbversion
This commit is contained in:
Sarjuuk
2015-11-07 18:35:49 +01:00
parent b5d73f0ac4
commit 141bc10901
2 changed files with 6 additions and 3 deletions

View File

@@ -542,8 +542,8 @@ DROP TABLE IF EXISTS `aowow_dbversion`;
CREATE TABLE `aowow_dbversion` ( CREATE TABLE `aowow_dbversion` (
`date` int(10) unsigned NOT NULL DEFAULT '0', `date` int(10) unsigned NOT NULL DEFAULT '0',
`part` tinyint(3) unsigned NOT NULL DEFAULT '0', `part` tinyint(3) unsigned NOT NULL DEFAULT '0',
`sql` text NOT NULL, `sql` text NULL,
`build` text NOT NULL `build` text NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8; ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET character_set_client = @saved_cs_client */;
@@ -2456,7 +2456,7 @@ UNLOCK TABLES;
LOCK TABLES `aowow_dbversion` WRITE; LOCK TABLES `aowow_dbversion` WRITE;
/*!40000 ALTER TABLE `aowow_dbversion` DISABLE KEYS */; /*!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 */; /*!40000 ALTER TABLE `aowow_dbversion` ENABLE KEYS */;
UNLOCK TABLES; UNLOCK TABLES;

View File

@@ -0,0 +1,3 @@
ALTER TABLE `aowow_dbversion`
CHANGE COLUMN `sql` `sql` TEXT NULL AFTER `part`,
CHANGE COLUMN `build` `build` TEXT NULL AFTER `sql`;