aboutsummaryrefslogtreecommitdiffstats
path: root/install.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--install.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/install.php b/install.php
index e2c2f5eca..68b98547d 100644
--- a/install.php
+++ b/install.php
@@ -338,6 +338,20 @@ INSERT INTO '.USER_INFOS_TABLE.'
(2, \'guest\', \''.$language.'\')
;';
mysql_query($query);
+
+ // Available upgrades must be ignored after a fresh installation. To
+ // make PWG avoid upgrading, we must tell it upgrades have already been
+ // made.
+ foreach (get_available_upgrade_ids() as $upgrade_id)
+ {
+ $query = '
+INSERT INTO '.UPGRADE_TABLE.'
+ (id, applied, description)
+ VALUES
+ ('.$upgrade_id.', NOW(), \'upgrade included in installation\')
+';
+ mysql_query($query);
+ }
}
}