peewee_migrate2 icon indicating copy to clipboard operation
peewee_migrate2 copied to clipboard

Primary key

Open Nathan-Riviere opened this issue 3 years ago • 0 comments

Hi,

The primary_key attribute is not reported.

My class :

class Test(BaseModel): -id = BigAutoField(primary_key=True)

Migrate :

class Test(BaseModel): -id = BigAutoField()

I use Postgres and consequently the following entity : PostgresqlDatabase

Docs : https://docs.peewee-orm.com/en/latest/peewee/api.html?highlight=PostgresqlDatabase#Database https://docs.peewee-orm.com/en/latest/peewee/api.html#BigAutoField

Thanks !

Nathan-Riviere avatar Apr 26 '21 18:04 Nathan-Riviere