summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorMW <joasch@users.sourceforge.net>2007-12-07 19:44:51 +0000
committerMW <joasch@users.sourceforge.net>2007-12-07 19:44:51 +0000
commitd010c200fe42b2b4b7c41637b9438d46284e8b7a (patch)
tree67ea6c924b38ae144ee681f9c37ca7e3b65ce9bf /admin
parent5dbaa7d7a42a3a10f6ee663bd733cfdc7b5bdafe (diff)
downloadfisheye-d010c200fe42b2b4b7c41637b9438d46284e8b7a.tar.gz
fisheye-d010c200fe42b2b4b7c41637b9438d46284e8b7a.tar.bz2
fisheye-d010c200fe42b2b4b7c41637b9438d46284e8b7a.zip
correctly add missing sequence fisheye_image_id_seq
Diffstat (limited to 'admin')
-rw-r--r--admin/upgrade_inc.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/admin/upgrade_inc.php b/admin/upgrade_inc.php
index 38dc6c8..5e1fd0f 100644
--- a/admin/upgrade_inc.php
+++ b/admin/upgrade_inc.php
@@ -24,6 +24,12 @@ array( 'DATADICT' => array(
)),
)),
+// query: create a fisheye_image_id_seq and bring the table up to date with the current max image_id used in the fisheye_image table - this basically for mysql
+array( 'PHP' => '
+ $query = $gBitDb->getOne("SELECT MAX(image_id) FROM `'.BIT_DB_PREFIX.'fisheye_image`");
+ $tempId = $gBitDb->mDb->GenID("`'.BIT_DB_PREFIX.'fisheye_image_id_seq`", $query);
+' ),
+
// Queries
array( 'QUERY' =>
array( 'SQL92' => array(