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

drop column with a not null constraint in sqlite3 throws "Unable to find column to change" #602

Open
strathausen opened this issue Dec 18, 2014 · 1 comment · May be fixed by radiumrasheed/knex#5

Comments

@strathausen
Copy link
Contributor

If you try to drop a column that has a not null constraint in sqlite3, the migration tool says it was "Unable to find column to change".

See the following gist for an example setup:
https://gist.github.com/strathausen/e6b26567e452fb09abce

The problem seems to be the test in line 150 in the schema/ddl.js file of sqlite3.

https://github.com/tgriesser/knex/blob/0.7.3/lib/dialects/sqlite3/schema/ddl.js#L150

@tkellen
Copy link
Contributor

tkellen commented Dec 30, 2014

Thanks for the gist @strathausen. Any chance you could turn that into a repo and post a link here? I'll give it a clone and see if I can fix this.

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

Successfully merging a pull request may close this issue.

2 participants