forked from modxcms/revolution
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/pr/16187' into 3.x
* upstream/pr/16187: Drop all the deprecated columns in a single statement Remove deprecated fields from modResource
- Loading branch information
Showing
7 changed files
with
32 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
setup/includes/upgrades/common/3.1.0-remove-deprecated-resource-fields.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
/** | ||
* Scripts removes deprecated fields from the main resource table | ||
* | ||
* @var modX $modx | ||
* @package setup | ||
*/ | ||
|
||
use MODX\Revolution\modResource; | ||
|
||
$class = modResource::class; | ||
$table = $modx->getTableName($class); | ||
$sql = "ALTER TABLE {$modx->escape($table)} | ||
DROP COLUMN `privateweb`, | ||
DROP COLUMN `privatemgr`, | ||
DROP COLUMN `donthit`;"; | ||
$modx->exec($sql); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
/** | ||
* Specific upgrades for Revolution 3.1.0-pl | ||
* | ||
* @var modX $modx | ||
* @package setup | ||
* @subpackage upgrades | ||
*/ | ||
|
||
/* run upgrades common to all db platforms */ | ||
include dirname(__DIR__) . '/common/3.1.0-remove-deprecated-resource-fields.php'; |