diff options
| author | MW <joasch@users.sourceforge.net> | 2007-12-07 19:55:26 +0000 |
|---|---|---|
| committer | MW <joasch@users.sourceforge.net> | 2007-12-07 19:55:26 +0000 |
| commit | 5894f968f624789316632806d2c39fa9856f194c (patch) | |
| tree | 6bb7612f4f4d46d8dc01ef7260fff9a56630e5e8 /admin | |
| parent | a74d3f6fcc927b84c8549bc552e6a5c1aa30c6e1 (diff) | |
| download | quota-5894f968f624789316632806d2c39fa9856f194c.tar.gz quota-5894f968f624789316632806d2c39fa9856f194c.tar.bz2 quota-5894f968f624789316632806d2c39fa9856f194c.zip | |
correctly add missing sequence quota_id_seqR202
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/upgrade_inc.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/admin/upgrade_inc.php b/admin/upgrade_inc.php index b21cdaf..87a6ba2 100644 --- a/admin/upgrade_inc.php +++ b/admin/upgrade_inc.php @@ -13,6 +13,12 @@ array( 'DATADICT' => array( '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); +' ), ) ), |
