-
Notifications
You must be signed in to change notification settings - Fork 116
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
Added nativeuuid type for databases with a native uuid type #786
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
fa33f6d
Added nativeuuid type for databases with a native uuid type
nicosp f7dca12
Added tests to postgres to ensure that nativeuuid behaves exactly lik…
nicosp 8f9634f
Add the native uuid type to specificColumnTypes to allow usage as pri…
nicosp a52c423
Remove incorrect test assertion
nicosp 5506ee0
Properly handle converting from text to binary and native uuid columns
nicosp 264332f
Enable the nativeuuid type conditionally.
nicosp dd4288b
Fix test assertion
nicosp 781387c
Check for uuid support in getSqlType as well
nicosp 8303d1a
Coding style fix
nicosp b042de9
Map nativeuuid phinx type when the database type is uuid
nicosp aebd91d
Added MariaDB to ci
nicosp 45b3983
Split the creation of extra mariadb databases in another step
nicosp 2577870
use the mysql command which actually exists
nicosp 0c70293
Test fixes for mariadb
nicosp 57133d7
Unbreak mysql tests and fix one more issue with CURRENT_TIMESTAMP vs …
nicosp 8402885
More test fixes
nicosp 7e58ee4
Skip GIS defaults on MariaDB. They do not work and fixing them is out…
nicosp 567cece
phpcs fixes
nicosp dd30608
Use the utf8mb4_unicode_520_ci which is present in both mysql and mar…
nicosp f914892
Fix on update current timestamp for mariadb
nicosp 117af69
Move the default collation to a function. Fixes remaining failures wi…
nicosp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
php-version: ['8.1', '8.2', '8.3', '8.4'] | ||
db-type: [mysql, pgsql, sqlite] | ||
db-type: [mariadb, mysql, pgsql, sqlite] | ||
prefer-lowest: [''] | ||
cake_version: [''] | ||
include: | ||
|
@@ -50,6 +50,19 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup MariaDB | ||
uses: getong/[email protected] | ||
if: matrix.db-type == 'mariadb' | ||
with: | ||
mariadb version: '10.11.10' | ||
mysql database: 'cakephp_test' | ||
mysql root password: 'root' | ||
- name: Setup MariaDB (part 2) | ||
if: matrix.db-type == 'mariadb' | ||
run: | | ||
mysql -h 127.0.0.1 -u root -proot -e 'CREATE DATABASE cakephp_comparisons;' | ||
mysql -h 127.0.0.1 -u root -proot -e 'CREATE DATABASE cakephp_snapshot;' | ||
|
||
- name: Setup MySQL | ||
if: matrix.db-type == 'mysql' | ||
run: | | ||
|
@@ -106,6 +119,12 @@ jobs: | |
if [[ ${{ matrix.db-type }} == 'sqlite' ]]; then | ||
export DB='sqlite' | ||
fi | ||
if [[ ${{ matrix.db-type }} == 'mariadb' ]]; then | ||
export DB='mysql' | ||
export DB_URL='mysql://root:[email protected]/cakephp_test' | ||
export DB_URL_COMPARE='mysql://root:[email protected]/cakephp_comparisons' | ||
export DB_URL_SNAPSHOT='mysql://root:[email protected]/cakephp_snapshot' | ||
fi | ||
if [[ ${{ matrix.db-type }} == 'mysql' ]]; then | ||
export DB='mysql' | ||
export DB_URL='mysql://root:[email protected]/cakephp_test' | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
I'm hoping to remove all of these constants in the future and use the abstract types defined in CakePHP. We'll have to make sure that the same abstract type names are used so that we don't break compatibility.