Skip to content
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

Cake Migrations support References of tables Fathers and Childs #318

Open
1 of 3 tasks
AndreLZGava opened this issue Jun 7, 2017 · 2 comments
Open
1 of 3 tasks

Comments

@AndreLZGava
Copy link

This is a (multiple allowed):

  • bug

  • enhancement

  • feature-discussion (RFC)

  • Bake plugin version: Cake migrations should support table references like Rails, this way would be very usefull. If this exists please document.

Expected Behavior

When developer executs this command

cake bake migration CreateTableUser name:text category_id:references

This would create a migration, on execute it a table User user would be created with it's fields and a field category_id referencing category as foreign key.

Actual Behavior

This feature probably don't exist if it exists this isn't documented.

@HavokInspiration HavokInspiration modified the milestones: 1.7.1, 1.7.2 Aug 2, 2017
@markstory markstory modified the milestones: 1.7.2, 1.8.x Apr 16, 2018
@dereuromark
Copy link
Member

@markstory Is this related to the undocumented references part?

@markstory
Copy link
Member

There isn't any support for references yet. It could be added though.

@markstory markstory modified the milestones: 1.8.x, 4.x (CakePHP 5) Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants