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

Proposal: Move Migration/Schema Tools out of Pop to Fizz #4

Open
markbates opened this issue Jun 30, 2018 · 1 comment
Open

Proposal: Move Migration/Schema Tools out of Pop to Fizz #4

markbates opened this issue Jun 30, 2018 · 1 comment
Labels
proposal A suggestion for a change, feature, enhancement, etc s: triage
Milestone

Comments

@markbates
Copy link
Member

Currently the migration and schema management tools are tied tightly to gobuffalo/pop. I feel as though these tools, representing a bulk of the soda command should be moved to gobuffalo/fizz.

These rebuilt tools can be used by Pop, Gorm, etc... independently. These tools should strive to use only the std lib sql package. If that's not easily do-able, then sqlx will be allowed, but nothing else beyond that.

In addition to allowing projects, such as Pop and Buffalo, to continue using these tools, we can make them available to the wider Go community as whole who need things like migrations, but don't want to use something such as Pop.

Related: gobuffalo/pop#154

@greggilbert
Copy link

I realize this ticket is almost 2 years old, but this could be accomplished by running something like this:

import "github.com/gobuffalo/pop"

migr, _ := pop.NewFileMigrator("./migrations", conn)
migr.Up()

or does this gloss over something I'm not seeing?

(I'd also like to see the migration/schema stuff moved into Fizz, FWIW.)

@sio4 sio4 added this to the v2 milestone Sep 7, 2022
@sio4 sio4 added the s: triage label Sep 7, 2022
@sio4 sio4 added the proposal A suggestion for a change, feature, enhancement, etc label Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal A suggestion for a change, feature, enhancement, etc s: triage
Projects
None yet
Development

No branches or pull requests

3 participants