diff options
| author | lsces <lester@lsces.co.uk> | 2025-08-29 09:50:44 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2025-08-29 09:50:44 +0100 |
| commit | 24ac90ba2d2e8911b8b51d251541565f202dd9ce (patch) | |
| tree | 998a5e4a84dc2008d7fe68123a8fc164e7ce5204 /admin/upgrade_inc.php | |
| parent | ef37929a5577234fc2a350b6207260c52d5835cd (diff) | |
| download | quota-24ac90ba2d2e8911b8b51d251541565f202dd9ce.tar.gz quota-24ac90ba2d2e8911b8b51d251541565f202dd9ce.tar.bz2 quota-24ac90ba2d2e8911b8b51d251541565f202dd9ce.zip | |
Refactor for PHP8.4, namespace and Smarty5
Diffstat (limited to 'admin/upgrade_inc.php')
| -rw-r--r-- | admin/upgrade_inc.php | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/admin/upgrade_inc.php b/admin/upgrade_inc.php deleted file mode 100644 index 87a6ba2..0000000 --- a/admin/upgrade_inc.php +++ /dev/null @@ -1,30 +0,0 @@ -<?php - -global $gBitSystem, $gUpgradeFrom, $gUpgradeTo; - -$upgrades = array( - - 'BWR1' => array( - 'BWR2' => array( -// de-tikify tables -array( 'DATADICT' => array( - array( 'RENAMETABLE' => array( - 'tiki_quotas' => 'quotas', - 'tiki_quotas_group_map' => 'quotas_group_map', - )), -)), - -// query: create a quota_id_seq and bring the table up to date with the current max quota_id used in the quotas table - this basically for mysql -array( 'PHP' => ' - $query = $gBitDb->getOne("SELECT MAX(quota_id) FROM `'.BIT_DB_PREFIX.'quotas`"); - $tempId = $gBitDb->mDb->GenID("`'.BIT_DB_PREFIX.'quota_id_seq`", $query); -' ), - ) - ), - -); - -if( isset( $upgrades[$gUpgradeFrom][$gUpgradeTo] ) ) { - $gBitSystem->registerUpgrade( QUOTA_PKG_NAME, $upgrades[$gUpgradeFrom][$gUpgradeTo] ); -} -?> |
