Reviewed:  https://reviews.mahara.org/3945
Committed: 
http://gitorious.org/mahara/mahara/commit/59625807f5b8134075f36c7cc69aa013163b9b9b
Submitter: Robert Lyon ([email protected])
Branch:    1.10_STABLE

commit 59625807f5b8134075f36c7cc69aa013163b9b9b
Author: Aaron Wells <[email protected]>
Date:   Fri Nov 7 18:45:06 2014 +1300

Upgrader always thinks it needs to upgrade core

Bug 1390318

Change-Id: I214a62d9bb4b40e6c8ebbde199177905608e34de

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1390318

Title:
  Fatal error when trying to run CLI upgrade script after clean install
  of 15.04dev

Status in Mahara ePortfolio:
  Confirmed
Status in Mahara 1.10 series:
  Confirmed
Status in Mahara 15.04 series:
  Confirmed

Bug description:
  To replicate:

  1. Do a clean install of Mahara (using either the CLI installer or the
  web installer.)

  2. After install is done, run the upgrade script (either CLI, or by
  going to /admin/upgrade.php

  Expected Results: Since there's nothing to upgrade, it should finish
  with no problems.

  Actual result:

  [INF] 7c (admin/cli/upgrade.php:49) Upgrading Mahara
  [INF] 7c (lib/mahara.php:221) Upgrading core
  [INF] 7c (lib/upgrade.php:1328) Enabled 2 HTML filters.
  [DBG] 7c (lib/mahara.php:1760) Field expiry exists. Create skipped
  [DBG] 7c (lib/mahara.php:1760) Field expirymailsent exists. Create skipped
  [DBG] 7c (lib/mahara.php:1760) Field suspended exists. Create skipped
  [DBG] 7c (lib/dml.php:147) postgres7 error: [-18: ERROR:  relation 
"artefact_blog_blogpost_file" does not exist] in adodb_throw(ALTER TABLE 
"artefact_blog_blogpost_file" RENAME TO "artefact_attachment", )
  [DBG] 7c (lib/dml.php:147) Command was: ALTER TABLE 
"artefact_blog_blogpost_file" RENAME TO "artefact_attachment"
  [WAR] 7c (lib/errors.php:745) Could not execute command: ALTER TABLE 
"artefact_blog_blogpost_file" RENAME TO "artefact_attachment"
  Call stack (most recent first):
    * log_message("Could not execute command: ALTER TABLE "artefact_b...", 8, 
true, true) at /home/aaronw/www/mahara/htdocs/lib/errors.php:95
    * log_warn("Could not execute command: ALTER TABLE "artefact_b...") at 
/home/aaronw/www/mahara/htdocs/lib/errors.php:745
    * SQLException->__construct("Could not execute command: ALTER TABLE 
"artefact_b...") at /home/aaronw/www/mahara/htdocs/lib/dml.php:148
    * execute_sql("ALTER TABLE {artefact_blog_blogpost_file} RENAME T...") at 
/home/aaronw/www/mahara/htdocs/lib/db/upgrade.php:80
    * xmldb_core_upgrade(null) at 
/home/aaronw/www/mahara/htdocs/lib/upgrade.php:353
    * upgrade_core(object(stdClass)) at 
/home/aaronw/www/mahara/htdocs/lib/mahara.php:253
    * upgrade_mahara(array(size 2)) at 
/home/aaronw/www/mahara/htdocs/admin/cli/upgrade.php:50

  [WAR] 7c (lib/dml.php:148) Could not execute command: ALTER TABLE 
"artefact_blog_blogpost_file" RENAME TO "artefact_attachment"
  Call stack (most recent first):
    * execute_sql("ALTER TABLE {artefact_blog_blogpost_file} RENAME T...") at 
/home/aaronw/www/mahara/htdocs/lib/db/upgrade.php:80
    * xmldb_core_upgrade(null) at 
/home/aaronw/www/mahara/htdocs/lib/upgrade.php:353
    * upgrade_core(object(stdClass)) at 
/home/aaronw/www/mahara/htdocs/lib/mahara.php:253
    * upgrade_mahara(array(size 2)) at 
/home/aaronw/www/mahara/htdocs/admin/cli/upgrade.php:50

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1390318/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp

Reply via email to