-
Notifications
You must be signed in to change notification settings - Fork 587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix mysql and postgres migration script of 1.9.20 #272
Fix mysql and postgres migration script of 1.9.20 #272
Conversation
Manage this branch in SquashTest this branch here: https://kenchan0130fix-mysql-migration-n5jn2.squash.io |
@fmancardi |
Dear user, I hope you can understand that expecting a response in some short period of time in Open Source project that has no company support is not a lot realistic. |
We understand that this is difficult to do with OSS and no support. I'm sorry to have rushed you. |
I would like to know the current status. |
Friendly ping. This issue still persists. Hopefully this will get merged. |
Hi
|
@fmancardi Thanks for your reply, but after I've investigated this issue all day today trying to revive an old TestLink database (that sadly wasn't backed up) I don't think this PR will fix the issue, as I don't believe TestLink causes it. Our installation is using a slightly modified version of the Bitnami docker-compose Image for Testlink and I'm pretty sure the error can be traced back to a failed update applied through this docker-compose setup earlier. When investigating the database using PhpMyAdmin I can see the changes from the sql update-script have been been applied and this upgrade is actually now blocking us from applying the update-script again, as the new columns in the tables are already present. This explains the error reported by @kenchan0130 that I'm also seeing. Been trying to revert the schema manually and then starting the docker image again (this applies the upgrade), but as of yet without luck. Sidenote: I'm actually not sure if the Bitnami-TestLink image is using the |
Hi Because code from testlink_1_9_20_fixed has not been released with a tag, Bitnami do not use it. best regards |
I have sent out another PR to address your requirements. |
What happened
testlink_create_tables
Survey results
The mysql migration script from 1.9.19 to 1.9.20 expects
testlink-code/install/sql/mysql/testlink_create_tables.sql
Lines 334 to 335 in b3004c6
However,
platforms.enable_on_design
andplatforms.enable_on_execution
are not migrating correctly.Since
https://github.com/TestLinkOpenSourceTRMS/testlink-code/blob/testlink_1_9/install/sql/postgres/testlink_create_default_data.sql
or
https://github.com/TestLinkOpenSourceTRMS/testlink-code/blob/testlink_1_9/install/sql/mysql/testlink_create_default_data.sql
is executed by https://github.com/TestLinkOpenSourceTRMS/testlink-code/blob/testlink_1_9/install/installNewDB.php.
When executed in the migration script, it will be
Impacted area
This affects all users who are using
1.9.19
and below and upgrading to1.9.20
.Users using from
1.9.20
are not affected.What did I do
platforms.enable_on_design
andplatforms.enable_on_execution
columns indb_schema_update.sql
.rights
table indb_schema_update.sql
Covered #251