-
Notifications
You must be signed in to change notification settings - Fork 892
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
Adds Custom Data Types (Data Domain) #1320
Conversation
…as PHPUnit\Framework\TestCase
Codecov Report
@@ Coverage Diff @@
## 0.next #1320 +/- ##
============================================
- Coverage 76.27% 75.12% -1.15%
============================================
Files 57 35 -22
Lines 5740 4825 -915
============================================
- Hits 4378 3625 -753
+ Misses 1362 1200 -162
Continue to review full report at Codecov.
|
…er::setDataDomain
Whats the status on this? |
Any chance we can revive and merge this? |
Yes @dereuromark , I'll try to resolve all merge conflicts and resolve any conflicts left asap. |
# Conflicts: # docs/en/migrations.rst # src/Phinx/Db/Adapter/AbstractAdapter.php # src/Phinx/Db/Table.php # tests/Phinx/Db/TableTest.php
@dereuromark I think I've resolved all issues! Please, let me know if there is something still unresolved. |
So based on your changes we can also ship the cake core type |
We are releasing a new major (0.12) soon. |
I'm not sure if this is related. I mean, my changes are related to Phinx migrations on standard Phinx adapters @ To add a new # Add a root config option to "phinx.yml" to start a Data Domain
data_domain:
binaryuuid: # Create the "binaryuuid" data type
type: blob # Use a base type as reference (Is Blob good for binaryuuid?)
default: null
null: true Adding this new "data domain" into $table->addColumn('uuid', 'binaryuuid'); I don't know if it's ok to automatically inject Cake types by default for folks (like me) that uses Phinx outside CakePHP projects. |
Absolutely, please merge into the most relevant branch. Thanks! |
Can you switch the target branch to 0.next? |
@dereuromark I just switched branches to |
It is possible |
Hi @dereuromark !! I've reviewed the new errors and I think they're not related to changes from my branch. They're easy to fix I think, but I find it weird to fix tests on this branch for other not related features. So, what are the options? I don't know how to make a "changeset" :-D Bear with me, hehehe. |
Either fixing the other changes in another PR and we merge that first, then this one will be auto green |
Technically, those are not different features, but as you can see from |
Thank you @dereuromark !! That might be it. Does it makes sense if I try to help merging |
master is now merged into it. |
@dereuromark Done! |
As commented in #753 this PR adds Custom Data Types to phinx.
This feature works by adding a root config option to
phinx.yml
creating a data domain:You can then use the new data types in migrations: