mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
DB/Setup
* allow "build" and "sql" fields to be NULL in ?_dbversion
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
3
setup/updates/1446917082_01.sql
Normal file
3
setup/updates/1446917082_01.sql
Normal 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`;
|
||||||
Reference in New Issue
Block a user