View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
09607Bug reportsInstallationpublic2015-05-07 14:54
Reporterc_schmitz Assigned ToDenisChenu  
PrioritynormalSeveritycrash 
Status closedResolutionfixed 
Product Version2.06alpha 
Fixed in Version2.06alpha 
Summary09607: Unable to update from versions older then 2.0
Description

If you try to update from a version that has no plugins yet you can update the database. An error will be shown that the plugins table is missing.

TagsNo tags attached.
Attached Files
dbupdate_1.png (12,843 bytes)   
dbupdate_1.png (12,843 bytes)   
dbupdate_2.png (9,081 bytes)   
dbupdate_2.png (9,081 bytes)   
Bug heat8
Complete LimeSurvey version number (& build)9999999999
I will donate to the project if issue is resolvedNo
Browser
Database type & version.
Server OS (if known).
Webserver software & version (if known).
PHP Version.

Users monitoring this issue

Mazi

Activities

DenisChenu

DenisChenu

2015-04-18 17:56

developer   ~32019

Fix committed to 2.06 branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=15113

DenisChenu

DenisChenu

2015-04-18 17:58

developer   ~32020

I test with the last 2.00 version : error with Permission : fixed it first.

After found all update system use $oDB not global var : replace by Yii::app()->getDb()
And fix another issue in dropColumn : try to update unreadable Yii::app()->db->driverName

Can you test ?

DenisChenu

DenisChenu

2015-04-18 17:59

developer   ~32021

@Mazi some times to test an upgrade from 1.92 ?

Mazi

Mazi

2015-04-18 22:12

updater   ~32022

Seems to work fine. The updater ran for ~15 minutes but it was a pretty large DB with ~100 surveys I tested.

Mazi

Mazi

2015-04-18 22:12

updater   ~32023

Screenshots attached.

DenisChenu

DenisChenu

2015-04-19 13:59

developer   ~32024

Strange : DB updated to 177 ? To 180 for me ....

Oh no ... it's a 2.06 issue Mazi.... Work good with 2.05 :)

c_schmitz

c_schmitz

2015-05-07 14:54

administrator   ~32113

Releasing 2.06RC1

Related Changesets

LimeSurvey: 2.06 40298140

2015-04-18 15:56:36

DenisChenu

Details Diff
Fixed issue 09607: Unable to update from versions 2.0
Dev: testes with last 2.00 version
Dev: Error with permission model
Dev: update function use $oDB, but not set global : update to Yii::app()->getDb()
Dev: update try to update unreadable Yii::app()->db->driverName
Affected Issues
09607
mod - application/core/LSYii_Validators.php Diff File
mod - application/helpers/update/updatedb_helper.php Diff File

Issue History

Date Modified Username Field Change
2015-04-17 16:02 c_schmitz New Issue
2015-04-18 15:19 DenisChenu Assigned To => DenisChenu
2015-04-18 15:19 DenisChenu Status new => assigned
2015-04-18 17:56 DenisChenu Changeset attached => LimeSurvey 2.06 40298140
2015-04-18 17:56 DenisChenu Note Added: 32019
2015-04-18 17:56 DenisChenu Resolution open => fixed
2015-04-18 17:57 DenisChenu Assigned To DenisChenu => c_schmitz
2015-04-18 17:58 DenisChenu Note Added: 32020
2015-04-18 17:58 DenisChenu Issue Monitored: Mazi
2015-04-18 17:59 DenisChenu Note Added: 32021
2015-04-18 18:03 DenisChenu Status assigned => resolved
2015-04-18 18:03 DenisChenu Fixed in Version => 2.06alpha
2015-04-18 18:03 DenisChenu Assigned To c_schmitz => DenisChenu
2015-04-18 22:11 Mazi File Added: dbupdate_1.png
2015-04-18 22:11 Mazi File Added: dbupdate_2.png
2015-04-18 22:12 Mazi Note Added: 32022
2015-04-18 22:12 Mazi Note Added: 32023
2015-04-19 13:59 DenisChenu Note Added: 32024
2015-05-07 14:54 c_schmitz Note Added: 32113
2015-05-07 14:54 c_schmitz Status resolved => closed
2021-08-12 07:12 guest Bug heat 6 => 8