Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd `diesel setup` #115
Comments
This comment has been minimized.
|
Should this also run any existing and pending migrations? |
This comment has been minimized.
|
Good point. I think it definitely makes sense for it to run migrations as a "I just cloned this app and want to get up and running" case. I'm not sure if it should just run pending migrations in general though, or if it should only run migrations if the |
This comment has been minimized.
|
I would err on the side of only running migrations if |
This comment has been minimized.
|
Yup, that's my thoughts as well. I've updated the original issue to include that as a prerequisite. |
This comment has been minimized.
pseudomuto
commented
Jan 30, 2016
|
Just browsing around here...did #126 close this? |
sgrif commentedJan 20, 2016
This should do the following:
Cargo.toml(maybe with a.gitkeepfile so it's clear to the user that it's there if they want to move it later)DATABASE_URLif that env var is set (or if the--database-url=option was set, and the database doesn't exist, attempt to create it by connecting to the same URL with the database unspecified.__diesel_schema_migrationsdoesn't already exist