Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Schema qualifier for enums #3307
Knex version: 0.17.6
Feature discussion / request
While creating a table with an explicit schema and I'm looking to use a native enum as one of the columns. I haven't found any documentation about how to qualify an enum declaration with schema name.
I've tried the following
but it lead to creation of
One possible solution could be to add a
Yep, looks like a bug that enum type creation does not respect withSchema.
for a workaround this should work though:
That workaround doesn't seem to work. Instead of generating the following SQL
which is invalid and leads to