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