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

sqlite alter column should list changes #376

Open
kelbyfaessler opened this issue Apr 22, 2024 · 0 comments
Open

sqlite alter column should list changes #376

kelbyfaessler opened this issue Apr 22, 2024 · 0 comments

Comments

@kelbyfaessler
Copy link

When you attempt to change the column type in a sqlite schema, then generate a migration file, this is the result:

/*
 SQLite does not support "Changing existing column type" out of the box, we do not generate automatic migration for that, so it has to be done manually
 Please refer to: https://www.techonthenet.com/sqlite/tables/alter_table.php
                  https://www.sqlite.org/lang_altertable.html
                  https://stackoverflow.com/questions/2083543/modify-a-columns-type-in-sqlite3

 Due to that we don't generate migration automatically and it has to be done manually
*/

That's fine, I'd prefer if you generated the SQL for me but I guess I can do it manually.

But it'd be nice if the comment included the changes that must be completed manually. For example, change column <xyz> from type <x> to type <y>

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

No branches or pull requests

1 participant