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

Create test db from development schema #1035

Closed
bcardarella opened this issue Jul 20, 2015 · 1 comment · May be fixed by doron2402/phoenix#19, doron2402/phoenix#25 or doron2402/phoenix#28
Closed

Create test db from development schema #1035

bcardarella opened this issue Jul 20, 2015 · 1 comment · May be fixed by doron2402/phoenix#19, doron2402/phoenix#25 or doron2402/phoenix#28

Comments

@bcardarella
Copy link
Contributor

I realize that #951 already was opened but here is my use case:

I am migrating a node.js application over to Phoenix. the database already exists. My development migrations are to normalize the schema with many table/column renames. I currently cannot test the application without creating the test db manually from the development db as a template. This is fine for my development machine, but doesn't work within the context of running the application on Travis where that development db doesn't exist at all.

@josevalim
Copy link
Member

Can you please open up an ecto issue? Let's discuss what we can do to solve this. We can provide SQL schemas, similar to what Rails does. It has its downsides though. It conflicts a lot, sometimes different PG versions would have different outputs, etc but I cannot think of any better option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants