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,93 @@
|
||||
{
|
||||
"1": {
|
||||
"method": "addColumn",
|
||||
"params": [
|
||||
"ccs_databases",
|
||||
{
|
||||
"name": "database_record_approve",
|
||||
"type": "tinyint",
|
||||
"length": 1,
|
||||
"allow_null": false,
|
||||
"default": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"2": {
|
||||
"method": "addColumn",
|
||||
"params": [
|
||||
"ccs_database_categories",
|
||||
{
|
||||
"name": "category_has_perms",
|
||||
"type": "tinyint",
|
||||
"length": 1,
|
||||
"allow_null": false,
|
||||
"default": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"3": {
|
||||
"method": "addColumn",
|
||||
"params": [
|
||||
"ccs_database_comments",
|
||||
{
|
||||
"name": "comment_approved",
|
||||
"type": "tinyint",
|
||||
"length": 1,
|
||||
"allow_null": false,
|
||||
"default": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"4": {
|
||||
"method": "addColumn",
|
||||
"params": [
|
||||
"ccs_databases",
|
||||
{
|
||||
"name": "database_comment_approve",
|
||||
"type": "tinyint",
|
||||
"length": 1,
|
||||
"allow_null": false,
|
||||
"default": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"5": {
|
||||
"method": "addColumn",
|
||||
"params": [
|
||||
"ccs_database_moderators",
|
||||
{
|
||||
"name": "moderator_approve_record",
|
||||
"type": "tinyint",
|
||||
"length": 1,
|
||||
"allow_null": false,
|
||||
"default": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"6": {
|
||||
"method": "addColumn",
|
||||
"params": [
|
||||
"ccs_database_moderators",
|
||||
{
|
||||
"name": "moderator_approve_comment",
|
||||
"type": "tinyint",
|
||||
"length": 1,
|
||||
"allow_null": false,
|
||||
"default": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"7": {
|
||||
"method": "addColumn",
|
||||
"params": [
|
||||
"ccs_database_moderators",
|
||||
{
|
||||
"name": "moderator_pin_record",
|
||||
"type": "tinyint",
|
||||
"length": 1,
|
||||
"allow_null": false,
|
||||
"default": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
<?php
|
||||
|
||||
$SQL[] = "ALTER TABLE ccs_databases ADD database_record_approve TINYINT(1) NOT NULL DEFAULT '0';";
|
||||
|
||||
$SQL[] = "ALTER TABLE ccs_database_categories ADD category_has_perms TINYINT(1) NOT NULL DEFAULT '0';";
|
||||
|
||||
$SQL[] = "ALTER TABLE ccs_database_comments ADD comment_approved TINYINT(1) NOT NULL DEFAULT '0';";
|
||||
|
||||
$SQL[] = "ALTER TABLE ccs_databases ADD database_comment_approve TINYINT(1) NOT NULL DEFAULT '0';";
|
||||
|
||||
$SQL[] = "ALTER TABLE ccs_database_moderators ADD moderator_approve_record TINYINT(1) NOT NULL DEFAULT '0',
|
||||
ADD moderator_approve_comment TINYINT(1) NOT NULL DEFAULT '0',
|
||||
ADD moderator_pin_record TINYINT(1) NOT NULL DEFAULT '0';";
|
||||
|
||||
|
||||
@@ -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', 11003 );
|
||||
|
||||
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