User tests: Successful: Unsuccessful:
Pull Request for #29279 (comment) (partly).
This Pull Request (PR) adds a check for table rename to the database schema check and fix so that such statements in update SQL scripts will not be ignored anymore by the database check and fix.
Currently without this PR the database schema check and fix ignores the following schema change:
There are 2 tests to be done:
It needs tests with MySQL and with PostgreSQL databases.
Testers please report back which kind of database you have used for the test. If you have both, please test both.
We can better count then if we have enough tests for both kinds of databases.
Currently we have:
RENAME TABLE `#__history` TO `#__ucm_history`;
ALTER TABLE "#__history" RENAME TO "#__ucm_history";
(replace #__
by your database prefix).
You have to start again with a clean installation, i.e. not use the one from the test before.
RENAME TABLE `#__history` TO `#__ucm_history`;
ALTER TABLE "#__history" RENAME TO "#__ucm_history";
(replace #__
by your database prefix).
Table rename statements in update SQL scripts are handled by the database schema check and fix.
Table rename statements in update SQL scripts are ignored by the database schema check and fix.
None, since the way how the database check and fix works is not documented anywhere except in the heads of a few people.
Same as the existing checks for renaming columns, the check for renaming tables added by this PR does not check for the old name, i.e. if the table or column has a name different to both the old and the new name, the check doesn't work. To fix this is out of the cope of this PR.
Status | New | ⇒ | Pending |
Category | ⇒ | Administration Language & Strings Libraries |
I have tested this item
using mysql 5.7.26. Had a problem with my phppgmyadmin so couldn't test
I have tested this item
mysql 8.0.20
postgresql 11.7
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
?
?
|
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-06-02 11:23:53 |
Closed_By | ⇒ | HLeithner | |
Labels |
Thanks
Always a pleasure :-)
And thanks to the testers. Really appreciated.
@alikon Please test with PostgreSQL if you can find some time. It doesn't need much. We don't have so many PostgreSQL testers, as you know. (begging)