- fix: add o2o field does not create constraint when migrating. (#396)
- fix: intermediate table for m2m relation not created. (#394)
- Migrate add m2m field with custom through generate duplicated table. (#393)
- Migrate drop the wrong m2m field when model have multi m2m fields. (#376)
- KeyError raised when removing or renaming an existing model (#386)
- fix: error when there is
__init__.py
in the migration folder (#272) - Setting null=false on m2m field causes migration to fail. (#334)
- Fix NonExistentKey when running
aerich init
without[tool]
section in config file. (#284) - Fix configuration file reading error when containing Chinese characters. (#286)
- sqlite: failed to create/drop index. (#302)
- PostgreSQL: Cannot drop constraint after deleting or rename FK on a model. (#378)
- Fix create/drop indexes in every migration. (#377)
- Sort m2m fields before comparing them with diff. (#271)
- Allow run
aerich init-db
with empty migration directories instead of abort with warnings. (#286) - Add version constraint(>=0.21) for tortoise-orm. (#388)
- Move
tomlkit
to optional and supportpip install aerich[toml]
. (#392)
0.8.0 - 2024-12-04
- Fix the issue of parameter concatenation when generating ORM with inspectdb (#331)
- Fix KeyError when deleting a field with unqiue=True. (#364)
- Correct the click import. (#360)
- Improve CLI help text and output. (#355)
- Fix mysql drop unique index raises OperationalError. (#346)
Upgrade note:
- Use column name as unique key name for mysql
- Drop support for Python3.7
0.7.2 - 2023-07-20
- Support virtual fields.
- Fix modify multiple times. (#279)
- Added
-i
and--in-transaction
options toaerich migrate
command. (#296) - Fix generates two semicolons in a row. (#301)
- Fix syntax error with python3.8.10. (#265)
- Fix sql generate error. (#263)
- Fix initialize an empty database. (#267)
- Fix postgres sql error (#263)
Now aerich use .py
file to record versions.
Upgrade Note:
- Drop
aerich
table - Delete
migrations/models
folder - Run
aerich init-db
- Improve
inspectdb
adding support topostgresql::numeric
data type - Add support for dynamically load DDL classes easing to add support to
new databases without changing
Migrate
class logic - Fix decimal field change. (#246)
- Support add/remove field with index.
- Improve
inspectdb
and supportpostgres
&sqlite
.
- Support migration for specified index. (#203)
- Fix
pyproject.toml
not existing error. (#217)
-
Change default config file from
aerich.ini
topyproject.toml
. (#197)Upgrade note:
- Run
aerich init -t config.TORTOISE_ORM
. - Remove
aerich.ini
.
- Run
-
Remove
pydantic
dependency. (#198) -
inspectdb
supportDATE
. (#215)
- Support
indexes
change. (#193)
- Fix no module found error. (#188) (#189)
- Add
Command
class. (#148) (#141) (#123) (#106) - Fix: migrate doesn't use source_field in unique_together. (#181)
- Fix KeyError: 'src_folder' after upgrading aerich to 0.5.4. (#176)
- Fix MySQL 5.X rename column.
- Fix
db_constraint
when fk changed. (#179)
- Fix incorrect index creation order. (#151)
- Not catch exception when import config. (#164)
- Support
drop column
for sqlite. (#40)
- Fix postgre alter null. (#142)
- Fix default function when migrate. (#147)
- Fix rename field on the field add. (#134)
- Fix postgres field type change error. (#135)
- Fix inspectdb for
FloatField
. (#138) - Support
rename table
. (#139)
- Fix tortoise connections not being closed properly. (#120)
- Fix bug for field change. (#119)
- Fix drop model in the downgrade. (#132)
- Refactor core code, now has no limitation for everything.
- Fix unnecessary import. (#113)
- Replace migrations separator to sql standard comment.
- Add
inspectdb
command.
- Use
pathlib
for path resolving. (#89) - Fix upgrade in new db. (#96)
- Fix packaging error. (#92)
- Bug fix. (#91 #93)
- Use
.sql
instead of.json
to store version file. - Add
rename
column support MySQL5. - Remove callable detection for defaults. (#87)
- Fix
sqlite
stuck. (#90)
- Fix encoding error. (#75)
- Support multiple databases. (#68)
- Compatible with models file in directory. (#70)
- Fix migrate to new database error. (#62)
- Fix first version error.
- Fix init error. (#61)
- Refactoring migrate logic, and this version is not compatible with previous version.
- Now there don't need
old_models.py
and it store in database. - Upgrade steps:
- Upgrade aerich version.
- Drop aerich table in database.
- Delete
migrations/{app}
folder and rerunaerich init-db
. - Update model and
aerich migrate
normally.
- Fix windows support. (#46)
- Support
db_constraint
in fk, m2m should manual define table with fk. (#52)
- Raise error with SQLite unsupported features.
- Fix Postgres alter table. (#48)
- Add
Rename
support.
- Fix tortoise ssl config.
- PostgreSQL add/drop index/unique.
- Fix postgres drop fk.
- Fix version sort.
- Fix bug in windows.
- Enhance PostgreSQL support.
- Update model file find method.
- Set
--safe
bool.
- Fix default_connection when upgrade
- Find default app instead of default.
- Diff MySQL ddl.
- Check tortoise config.
- Fix upgrade error when migrate.
- Fix init db sql error.
- Support change column.
- Exclude models.Aerich.
- Add init record when init-db.
- Fix version num str.
- update dependency_links
- Add sqlite and postgres support.
- Fix dependency import.
- Store versions in db.
- Fix transaction and fields import.
- Make unique index worked.
- Add cli --version.
- Support indexes and unique_together.
- Now aerich support m2m.
- Add cli cmd init-db.
- Change cli options.
- Now aerich is basic worked.