This repository was archived by the owner on Nov 2, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 6
Update SQL Scripts for Postgresql and MySQL and Code Cleanup #6
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bembelimen
suggested changes
Jul 30, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When cleaned up, we can merge asap
administrator/components/com_admin/sql/updates/mysql/4.2.0-2022-06-16.sql
Show resolved
Hide resolved
administrator/components/com_admin/sql/updates/mysql/4.2.0-2022-06-16.sql
Outdated
Show resolved
Hide resolved
brianteeman
reviewed
Jul 31, 2022
administrator/components/com_admin/sql/updates/postgresql/4.3.0-2022-07-30.sql
Outdated
Show resolved
Hide resolved
brianteeman
reviewed
Jul 31, 2022
brianteeman
reviewed
Jul 31, 2022
brianteeman
reviewed
Jul 31, 2022
brianteeman
reviewed
Aug 3, 2022
administrator/components/com_admin/sql/updates/postgresql/4.3.0-2022-07-30.sql
Outdated
Show resolved
Hide resolved
- Some code style fixes - Be consistent with how you specify primary keys in MySQL - On update, insert new extensions with one insert statement and use ordering 0
Add missing extensions record for the plugin for new installations on PostgreSQL
- The checked_out and checked_out_time columns meanwhile allow null values and so also should not have a default value. - Use data types consistent with other tables for these columns.
- Use correct data types in PostgreSQL. - Remove "state" column which is not used for MySQL either.
See joomla/joomla-cms#37156 for details.
The soundex function has to be the last thing in this file.
- Do not use wrong values for created and modified times. - Do not use hardcoded user ID.
- Hardcoded MySQL names quotes in this query lead to an SQL error on PostgreSQL databases - Added other missing names quotes
Merged
Remove wrong code possibly resulting from copy and paset
The database checker for PostgreSQL seems to have a problem when the opening bracket is in a new line. This has to be fixed elsewhere, For now adapt to this behavior.
|
For fixes on SQL, especially for PostgreSQL, see #10 . |
…uided-tour into cleanup-fix-sql-2022-08-13
SQL fixes for PR #6
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary of Changes