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

Request to have this package produce a migration file, rather than making the changes #3

Open
SlyDave opened this issue Aug 1, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@SlyDave
Copy link

SlyDave commented Aug 1, 2022

it would be nice if this package produced an actual migration of the result, that can then be committed, rather than having a migration that runs the artisan command.

By including a migration that runs the artisan commend, there is a requirement to always include this package as a dependency, even after it has served its purpose.

It would be more useful, if this package produced a migration that can then be committed to the project, that contained all the up's and down's to go from int to bigint and back

@forxer
Copy link
Member

forxer commented Aug 4, 2022

It's a good idea, it always bothered me to have to install the package when it's only used once.

We will think about it.

@forxer forxer added the enhancement New feature or request label Aug 4, 2022
@godismyjudge95
Copy link
Contributor

For those wanting a standalone migration of this package:
https://gist.github.com/godismyjudge95/12c3cebeb3156c84fbac795a8f803382

@forxer feel free to copy it back into the repo, just don't have the time atm for a PR

@forxer
Copy link
Member

forxer commented Jul 3, 2023

@godismyjudge95 I don't think this really answers the initial request which was, if I understood correctly, that the package could generate a migration with the up() and down() methods so that there is actually the generated SQL code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants