Skip to content

Generate isUnique rules for single column unique key indexes.#196

Merged
markstory merged 1 commit intomasterfrom
issue-182
Dec 12, 2015
Merged

Generate isUnique rules for single column unique key indexes.#196
markstory merged 1 commit intomasterfrom
issue-182

Conversation

@markstory
Copy link
Copy Markdown
Member

While it is possible to add rules for multi-column unique keys, doing so would require changing the template data, which will likely break userland templates. For that reason, I'd rather not add support for multi-column unique keys at this point in time.

Refs #182

While it is possible to add rules for multi-column unique keys, doing
so would require changing the template data, which will likely break
userland templates. For that reason, I'd rather not add support for
multi-column unique keys at this point in time.

Refs #182
@markstory markstory added this to the 1.1.3 milestone Dec 10, 2015
@lorenzo
Copy link
Copy Markdown
Member

lorenzo commented Dec 10, 2015

Good job!

@lorenzo
Copy link
Copy Markdown
Member

lorenzo commented Dec 10, 2015

I'll see why php 7 is not happy in travis

@htstudios
Copy link
Copy Markdown

Thanks!

Out of interest: When 3.2 or 4.x hits multi column unique key constraint should be added?

@markstory
Copy link
Copy Markdown
Member Author

@jhli We'd have to break compatibility with previous versions of bake. That doesn't have to be timed with a change in a CakePHP version necessarily.

@htstudios
Copy link
Copy Markdown

Okay, I did open that ticket in case I get to bake improvements early next year it's not forgotten.

markstory added a commit that referenced this pull request Dec 12, 2015
Generate isUnique rules for single column unique key indexes.
@markstory markstory merged commit 651664a into master Dec 12, 2015
@markstory markstory deleted the issue-182 branch December 12, 2015 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants