This repository has been archived by the owner on Jan 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Conversation
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
DDL expressions should not result in trailing whitespace.
AbstractPrecisionColumn
Fixes missing DEFAULT value in expression data
Purposely ignore $isNullable from parent by resetting it in getExpressionData()
* NOT NULL should be in the spec like DEFAULT * Type is never in the spec (always second param) * Float column should have FLOAT type
Should follow the same SQL92 named constrained syntax pattern
* Constraint doesn't need to use position placeholders * Reference column should support an array of column identifiers
Reduced duplicated code
Provides an API for adding single column constraints to avoid adding a separate, named constaint to the table
Splits the specification into two parts; the named part (for table constraints), and the rest (the table/column constraints)
@jimmysole, if this is accepted, yes, it will allow you to create unsigned columns among other things: $pkCol = new Zend\Db\Sql\Ddl\Column\Integer('foo', false, null, array('auto_increment' => true, 'unsigned' => true));
$pkCol->addConstraint(new Zend\Db\Sql\Ddl\Constraint\PrimaryKey()); |
@kabel That would be awesome! I hope it is accepted. |
Scheduling for 2.4.0, as it adds significant functionality and changes internals. |
Adding the |
Ocramius
added a commit
that referenced
this pull request
Nov 17, 2014
Ocramius
added a commit
that referenced
this pull request
Nov 17, 2014
Ocramius
added a commit
that referenced
this pull request
Nov 17, 2014
Ocramius
added a commit
that referenced
this pull request
Nov 17, 2014
Ocramius
added a commit
that referenced
this pull request
Nov 17, 2014
Ocramius
added a commit
that referenced
this pull request
Nov 17, 2014
Ocramius
added a commit
that referenced
this pull request
Nov 17, 2014
Ocramius
added a commit
that referenced
this pull request
Nov 17, 2014
Ocramius
added a commit
that referenced
this pull request
Nov 17, 2014
Ocramius
added a commit
that referenced
this pull request
Nov 17, 2014
Ocramius
added a commit
that referenced
this pull request
Nov 17, 2014
Ocramius
added a commit
that referenced
this pull request
Nov 17, 2014
Ocramius
added a commit
that referenced
this pull request
Nov 17, 2014
+1 |
adamlundrigan
added a commit
to adamlundrigan/zf2
that referenced
this pull request
Nov 18, 2014
@adamlundrigan already merged #6885 by @samsonasik about that :-) Thanks anyway! |
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.
Zend\Db\Sql\Ddl\Constraint
classes to be added to columnsCreateTableDecorator
class to allow for inserting data type options and adding other column options in the correct position/orderFixes #6210