Added 2 new tasks for importing and exporting sql dump files. #216
Added 2 new tasks for importing and exporting sql dump files. #216paulcsmith merged 12 commits intomasterfrom
Conversation
paulcsmith
left a comment
There was a problem hiding this comment.
This looks good so far. Can you ping me when you've got the spec ready to go?
|
oh yeah, what did you want to do about that? Should I just get specs running outside of Docker? Or should I update the Dockerfile to install the latest pg client stuff? |
|
@jwoertink Whichever is easiest. If you wanna remove Docker and just use Crystal on Travis then I'm cool with that too! |
…tall the latest postgres client
paulcsmith
left a comment
There was a problem hiding this comment.
A few small comments. So stoked for this. This will be super helpful when migrations start getting huge. You can just dump the structure. Delete the migrations and start new migrations from that point on (at least I think that'll work)
…mp code. Allow for custom export file name
paulcsmith
left a comment
There was a problem hiding this comment.
Just one small comment! Looks awesome
paulcsmith
left a comment
There was a problem hiding this comment.
Looks awesome! And nice find. I forgot about with_cleanup :P
Fixes #168
This adds in 2 new tasks.
lucky db.schema.restore path/to/sql_dump.sqllucky db.schema.dumpThese allow you to task a sql dump file and import your schema in the case you don't have migration files to run. Or you can create a dump file from your current schema that you can use to import later.