Version 4.1.19
This commit is contained in:
1 parent
28bd025b35
commit
2bd5025018
2674 files changed
+233518
-77766
No files matched your search
@@ -0,0 +1,156 @@
|
||||
{
|
||||
"1": {
|
||||
"method": "createTable",
|
||||
"params": [
|
||||
{
|
||||
"name": "ccs_database_moderators",
|
||||
"columns": {
|
||||
"moderator_id": {
|
||||
"name": "moderator_id",
|
||||
"type": "INT",
|
||||
"length": "11",
|
||||
"unsigned": false,
|
||||
"zerofill": false,
|
||||
"binary": false,
|
||||
"allow_null": false,
|
||||
"default": "0",
|
||||
"auto_increment": false
|
||||
},
|
||||
"moderator_database_id": {
|
||||
"name": "moderator_database_id",
|
||||
"type": "INT",
|
||||
"length": 11,
|
||||
"decimals": null,
|
||||
"values": [],
|
||||
"allow_null": false,
|
||||
"default": 0,
|
||||
"unsigned": false,
|
||||
"zerofill": false,
|
||||
"auto_increment": false,
|
||||
"binary": false
|
||||
},
|
||||
"moderator_type": {
|
||||
"name": "moderator_type",
|
||||
"type": "VARCHAR",
|
||||
"length": 16,
|
||||
"decimals": null,
|
||||
"values": [],
|
||||
"allow_null": true,
|
||||
"default": null,
|
||||
"unsigned": false,
|
||||
"zerofill": false,
|
||||
"auto_increment": false,
|
||||
"binary": false
|
||||
},
|
||||
"moderator_type_id": {
|
||||
"name": "moderator_type_id",
|
||||
"type": "INT",
|
||||
"length": 11,
|
||||
"decimals": null,
|
||||
"values": [],
|
||||
"allow_null": false,
|
||||
"default": 0,
|
||||
"unsigned": true,
|
||||
"zerofill": false,
|
||||
"auto_increment": false,
|
||||
"binary": false
|
||||
},
|
||||
"moderator_delete_record": {
|
||||
"name": "moderator_delete_record",
|
||||
"type": "tinyint",
|
||||
"length": 1,
|
||||
"decimals": null,
|
||||
"values": [],
|
||||
"allow_null": false,
|
||||
"default": 0,
|
||||
"unsigned": true,
|
||||
"zerofill": false,
|
||||
"auto_increment": false,
|
||||
"binary": false
|
||||
},
|
||||
"moderator_edit_record": {
|
||||
"name": "moderator_edit_record",
|
||||
"type": "tinyint",
|
||||
"length": 1,
|
||||
"decimals": null,
|
||||
"values": [],
|
||||
"allow_null": false,
|
||||
"default": "0",
|
||||
"unsigned": false,
|
||||
"zerofill": false,
|
||||
"auto_increment": false,
|
||||
"binary": false
|
||||
},
|
||||
"moderator_lock_record": {
|
||||
"name": "moderator_lock_record",
|
||||
"type": "tinyint",
|
||||
"length": 1,
|
||||
"decimals": null,
|
||||
"values": [],
|
||||
"allow_null": false,
|
||||
"default": 0,
|
||||
"unsigned": true,
|
||||
"zerofill": false,
|
||||
"auto_increment": false,
|
||||
"binary": false
|
||||
},
|
||||
"moderator_unlock_record": {
|
||||
"name": "moderator_unlock_record",
|
||||
"type": "tinyint",
|
||||
"length": 1,
|
||||
"decimals": null,
|
||||
"values": [],
|
||||
"allow_null": false,
|
||||
"default": 0,
|
||||
"unsigned": false,
|
||||
"zerofill": false,
|
||||
"auto_increment": false,
|
||||
"binary": false
|
||||
},
|
||||
"moderator_delete_comment": {
|
||||
"name": "moderator_delete_comment",
|
||||
"type": "tinyint",
|
||||
"length": 1,
|
||||
"decimals": null,
|
||||
"values": [],
|
||||
"allow_null": false,
|
||||
"default": 0,
|
||||
"unsigned": false,
|
||||
"zerofill": false,
|
||||
"auto_increment": false,
|
||||
"binary": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"PRIMARY": {
|
||||
"type": "primary",
|
||||
"name": "PRIMARY",
|
||||
"columns": [
|
||||
"moderator_id"
|
||||
]
|
||||
},
|
||||
"moderator_database_id": {
|
||||
"type": "key",
|
||||
"name": "moderator_database_id",
|
||||
"columns": [
|
||||
"moderator_database_id"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"2": {
|
||||
"method": "addColumn",
|
||||
"params": [
|
||||
"ccs_database_categories",
|
||||
{
|
||||
"name": "category_show_records",
|
||||
"type": "tinyint",
|
||||
"length": 1,
|
||||
"allow_null": false,
|
||||
"default": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
<?php
|
||||
|
||||
$SQL[] = "CREATE TABLE ccs_database_moderators (
|
||||
moderator_id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||
moderator_database_id INT NOT NULL DEFAULT '0',
|
||||
moderator_type VARCHAR( 16 ) NULL DEFAULT NULL ,
|
||||
moderator_type_id INT NOT NULL DEFAULT '0',
|
||||
moderator_delete_record TINYINT(1) NOT NULL DEFAULT '0',
|
||||
moderator_edit_record TINYINT(1) NOT NULL DEFAULT '0',
|
||||
moderator_lock_record TINYINT(1) NOT NULL DEFAULT '0',
|
||||
moderator_unlock_record TINYINT(1) NOT NULL DEFAULT '0',
|
||||
moderator_delete_comment TINYINT(1) NOT NULL DEFAULT '0',
|
||||
INDEX ( moderator_database_id )
|
||||
);";
|
||||
|
||||
$SQL[] = "ALTER TABLE ccs_database_categories ADD category_show_records TINYINT(1) NOT NULL DEFAULT '1';";
|
||||
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
/**
|
||||
* @brief 4.0.0 Upgrade Code
|
||||
* @author <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a>
|
||||
* @copyright (c) 2001 - SVN_YYYY Invision Power Services, Inc.
|
||||
* @copyright (c) 2001 - 2016 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/legal/standards/
|
||||
* @package IPS Social Suite
|
||||
* @subpackage Pages
|
||||
* @package IPS Community Suite
|
||||
* @subpackage Content
|
||||
* @since 08 Jan 2015
|
||||
* @version SVN_VERSION_NUMBER
|
||||
*/
|
||||
@@ -30,18 +30,6 @@ class _Upgrade
|
||||
* @return array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops)
|
||||
*/
|
||||
public function step1()
|
||||
{
|
||||
\IPS\core\Setup\Upgrade::runLegacySql( 'cms', 11002 );
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/**
|
||||
* Upgrade
|
||||
*
|
||||
* @return array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops)
|
||||
*/
|
||||
public function step2()
|
||||
{
|
||||
foreach( \IPS\Db::i()->select( '*', 'ccs_databases' ) as $r )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user