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

Maybe support separate .sql files? #1

Open
nathanl opened this issue Nov 10, 2015 · 2 comments
Open

Maybe support separate .sql files? #1

nathanl opened this issue Nov 10, 2015 · 2 comments

Comments

@nathanl
Copy link

nathanl commented Nov 10, 2015

Just a thought - large chunks SQL in YAML could get awkward. It might be nice to be able to break them out into .sql files.

Feel free to ignore my random bikeshedding. 😄

@piisalie
Copy link
Owner

I agree about the large chunks of SQL being unwieldy in YAML.

When you say 'break them out into .sql files' do you mean have .sql files that are referenced in the YAML migration file? Or just discard the entire YAML idea and use plain text files that get parsed somehow into the appropriate up/down sql?

@nathanl
Copy link
Author

nathanl commented Nov 16, 2015

Personally I would generate a pair of SQL files ending with _up.sql and _down.sql and use those. But maybe it's too annoying to have to deal with two files per migration. I just like getting proper syntax highlighting and such.

Like I said, feel free to ignore me.

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

No branches or pull requests

2 participants