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

Migration - automatic table creation #28

Closed
arekolek opened this issue Aug 9, 2013 · 1 comment
Closed

Migration - automatic table creation #28

arekolek opened this issue Aug 9, 2013 · 1 comment

Comments

@arekolek
Copy link

arekolek commented Aug 9, 2013

http://satyan.github.io/sugar/getting-started.html#entities says:

Sugar takes care of table creation for you.

But it's only the first time, or if you decide to drop all the data with every upgrade.

I don't see why couldn't Sugar take care of creating tables for any entities not yet present. Since it does it already on database creation, this could save the developers from writing "create table" queries in migration files, that Sugar is able to execute for them automatically.

@satyan
Copy link
Collaborator

satyan commented Aug 9, 2013

@arekolek we could do that for new tables creation. Still the migration script would be required for any alteration to the existing tables. I agree it'd certainly help with new entities creation.

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

No branches or pull requests

3 participants