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.
Drop all the deprecated columns in a single statement
- Loading branch information
1 parent
b47ba96
commit 9ad5f39
Showing
3 changed files
with
20 additions
and
26 deletions.
There are no files selected for viewing
24 changes: 0 additions & 24 deletions
24
setup/includes/upgrades/common/3.0.2-remove-deprecated-resource-fields.php
This file was deleted.
Oops, something went wrong.
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); |
4 changes: 2 additions & 2 deletions
4
setup/includes/upgrades/mysql/3.0.2-pl.php → setup/includes/upgrades/mysql/3.1.0-pl.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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<?php | ||
/** | ||
* Specific upgrades for Revolution 3.0.2-pl | ||
* 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.0.2-remove-deprecated-resource-fields.php'; | ||
include dirname(__DIR__) . '/common/3.1.0-remove-deprecated-resource-fields.php'; |