We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a BaseModel class that all my models inherit from that looks like this:
BaseModel
class BaseModel(peewee.Model): id = peewee.BigAutoField(primary_key=True) class Meta: database = db
When I run db.evolve(), it wants to run an ALTER TABLE query for every table that that looks like this:
db.evolve()
ALTER TABLE
ALTER TABLE "my_table_name" ALTER COLUMN "id" TYPE BIGSERIAL;
But this doesn't work because BIGSERIAL is not a type.
BIGSERIAL
ERROR: type "bigserial" does not exist
The text was updated successfully, but these errors were encountered:
@jnrbsn: Did you find any workaround?
Sorry, something went wrong.
No branches or pull requests
I have a
BaseModel
class that all my models inherit from that looks like this:When I run
db.evolve()
, it wants to run anALTER TABLE
query for every table that that looks like this:But this doesn't work because
BIGSERIAL
is not a type.The text was updated successfully, but these errors were encountered: