peewee_migrate2 icon indicating copy to clipboard operation
peewee_migrate2 copied to clipboard

Simple migration engine for Peewee

Results 11 peewee_migrate2 issues
Sort by recently updated
recently updated
newest added

Handle state changes in separate object instaead changing global Model object. This will allow us correctly handling creating indexes and many more features in future :)

enhancement

Bumps [pytest](https://github.com/pytest-dev/pytest) from 6.2.5 to 7.1.2. Release notes Sourced from pytest's releases. 7.1.2 pytest 7.1.2 (2022-04-23) Bug Fixes #9726: An unnecessary numpy import inside pytest.approx{.interpreted-text role="func"} was removed. #9820: Fix...

dependencies

While using peewee.ManyToManyField, mirations does not create the through table ```python impot peewee as pw class Item(pw.Model): name = pw.CharFiled(max_length=10) class Meta: databse = db class User(pw.Model): name = pw.CharFiled(max_length=10)...

I'm trying to create my first migration, however, the sorting mechanism is not ordering correctly the table's creation raising KeyError, I think the error lies on `peewee_migrate/auto.py:133`, the function sort_models...

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...

bug

Hi, Is it possible to add the constraints? I have in my model : > class Test(BaseModel): id = PrimaryKeyField(unique=True) quantity = IntegerField(constraints=[Check('quantity > 0')]) And in my migration :...

enhancement

`peewee_migrate makemigrations` does not create migrations correctly for indexes created using this api http://docs.peewee-orm.com/en/latest/peewee/models.html#advanced-index-creation 1. It does not detect any migration when the index has been added 2. It puts...

enhancement
good first issue

When you add a column with a default value `peewee_migrate makemigrations` creates a migration using constraints like that: ```python migrator.add_fields('some_model', some_int_field=constraints=[SQL("DEFAULT 5")])) ``` And it looks like such migrations break...

bug

My code for migrator: ``` migrator.add_fields( 'component', file=pw.ForeignKeyField( backref='component_set', column_name='file_id', field='id', model=migrator.orm['file'], null=True, unique=True ) ) ``` leads to next sql log: ``` 2020-06-02 06:19:08.189 UTC [110] LOG: statement: ALTER...

bug

Bumps [pytest](https://github.com/pytest-dev/pytest) from 6.2.5 to 7.1.3. Release notes Sourced from pytest's releases. 7.1.3 pytest 7.1.3 (2022-08-31) Bug Fixes #10060: When running with --pdb, TestCase.tearDown is no longer called for tests...

dependencies