Skip to content

Remove creation_ddl from model#42

Merged
dcbrandao merged 2 commits into
masterfrom
creation-ddl
Mar 11, 2019
Merged

Remove creation_ddl from model#42
dcbrandao merged 2 commits into
masterfrom
creation-ddl

Conversation

@dcbrandao

Copy link
Copy Markdown
Contributor

This really belongs in the update code, so move it from model.Model to
admin.update.CreateTable. Also because creating the table fresh on a new
database also requires involve adding secondary indices, add a helper
method that takes a model and returns the list of ddl necessary to set
up the table for that model.
Note: This PR depends on #40

This really belongs in the update code, so move it from model.Model to
admin.update.CreateTable. Also because creating the table fresh on a new
database also requires involve adding secondary indices, add a helper
method that takes a model and returns the list of ddl necessary to set
up the table for that model.
@dcbrandao dcbrandao changed the base branch from update-updates to master March 8, 2019 20:54
@dcbrandao dcbrandao merged commit 559fee0 into master Mar 11, 2019
@dcbrandao dcbrandao deleted the creation-ddl branch March 11, 2019 18:00
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.

2 participants