Waket Zheng
1acb9ed1e7
chore(deps): limit tortoise-orm version to >=0.21
instead of wildcard (*) ( #388 )
...
* Limit tortoise-orm version to `>=0.21` instead of wildcard (*)
* ci: fix typos
* docs: update changelog
* refactor: import MEMORY_SQLITE from tortoise
* Update changelog
2024-12-21 11:04:02 +08:00
Waket Zheng
69ce0cafa1
fix: intermediate table for m2m relation not created ( #394 )
...
* fix: intermediate table for m2m relation not created
* Add unittest
* docs: update changelog
2024-12-18 00:13:19 +08:00
Waket Zheng
4fc7f324d4
fix: add m2m field with custom m2m through generate duplicated table when migrating ( #393 )
...
* fix: m2m table duplicated when using custom model for through
* Add testcase
* docs: update changelog
* tests: add m2m custom through example test
2024-12-17 22:28:06 +08:00
Waket Zheng
d8addadb37
chore(deps): prefer to use tomllib/tomli
and mark tomlkit/tomli_w
as optional ( #392 )
...
* chore(deps): prefer to use tomllib and mark tomlkit as optional
* docs: add toml extra to install command
* docs: update changelog
2024-12-17 01:43:36 +08:00
Waket Zheng
0780919ef3
fix: migrate drop the wrong m2m field when model have multi m2m fields ( #390 )
...
* fix: migrate drop the wrong m2m field when model have multi m2m fields
* Make style and update changelog
* refactor: return new lists instead of change argument values in function
* refactor: use custom diff function instead of reorder lists
* docs: fix typo
* Fix hardcoded and rename custom diff function
* Update function doc
2024-12-17 01:20:02 +08:00
Waket Zheng
5af8c9cd56
docs: update changelog
2024-12-16 11:49:52 +08:00
Waket Zheng
56da0e7e3c
fix: KeyError raised when removing or renaming an existing model
2024-12-12 10:43:40 +08:00
Lance.Moe
6270c4781e
fix: error when there is __init__.py in the migration folder ( #272 )
...
* fix: error when there is __init__.py in the migration folder
* fix: check __init__.py in the migration folder
* refactor
* refactor & add test
* refactor
* Update changelog
---------
Co-authored-by: Waket Zheng <waketzheng@gmail.com>
2024-12-11 21:34:14 +08:00
Waket Zheng
12d0a5dad1
fix: setting null=false on m2m field causes migration to fail ( #385 )
...
* fix: setting null=false on m2m field causes migration to fail
* Update changelog
2024-12-11 21:12:04 +08:00
Waket Zheng
5572876714
fix: NonExistentKey when running aerich init
without [tool]
section in config file ( #381 )
...
* fix: NonExistentKey when running `aerich init` without `[tool]` section in config file
* docs: update changelog
2024-12-11 13:26:18 +08:00
Waket Zheng
3d840395f1
docs: update changlog
2024-12-10 23:11:13 +08:00
Waket Zheng
9c81bc6036
Fix sqlite create/drop index ( #379 )
...
* Update add/drop index template for sqlite
* tests: add sqlite migrate/upgrade command test
* tests: add timeout for sqlite migrate command test
* tests: add test cases for add/drop unique field for sqlite
* fix: sqlite failed to add unique field
2024-12-10 16:37:30 +08:00
Waket Zheng
c2ebe9b5e4
Fix postgres fk rename ( #378 )
...
* Update postgres drop fk template
* fix test error
* docs: update changlog
2024-12-09 11:41:40 +08:00
Mykola Solodukha
8cefe68c9b
[BUG] Sort m2m fields before comparing them with diff(...)
( #271 )
...
* 🐛 Sort m2m fields before comparing them with `diff(...)`
* Add test case and upgrade changelog
---------
Co-authored-by: Waket Zheng <waketzheng@gmail.com>
2024-12-05 17:41:58 +08:00
Waket Zheng
252cb97767
Bump version to 0.8.0 and update changelog
2024-12-04 00:14:35 +08:00
Waket Zheng
5b04b4422d
chore: upgrade deps, update changelog, drop test db before create ( #372 )
...
* chore: upgrade deps, update changelog, drop test db before create
* tests: clear operators for sqlite ddl after NotSupportError raised
2024-12-03 23:30:37 +08:00
gck123
c0fd3ec63c
Fix KeyError when deleting a field with unqiue=True ( #365 )
...
* Fix KeyError when deleting a field with unqiue=True
* refactor: rename `old_data_unique` to `is_unique_field`
* Add testcases for remove unique field
---------
Co-authored-by: gongchangku <gongchangku@anban.tech>
Co-authored-by: Waket Zheng <waketzheng@gmail.com>
2024-12-03 10:16:44 +08:00
Waket Zheng
dc020358b6
chore: make style, upgrade deps, fix ci error and update changelog
2024-11-25 23:46:48 +08:00
Waket Zheng
7bb35c10e4
Add tag link to change log
2024-06-07 11:08:49 +08:00
Waket Zheng
aee706e29b
Update changelog
2024-06-06 16:43:08 +08:00
Waket Zheng
234495d291
docs: bump up version and update changelog
2024-06-06 00:07:29 +08:00
long2ice
f0bc3126e9
fix: generates two semicolons in a row. ( #301 )
2023-05-12 14:52:17 +08:00
Bogdan
d79dc25ee8
enriched changelog
2023-05-03 19:48:25 +04:00
long2ice
1c9b65cc37
fix: modify multiple times. ( #279 )
2023-01-27 13:49:07 +08:00
long2ice
52b50a2161
feat: support virtual fields
2022-11-18 23:23:04 +08:00
long2ice
20aebc4413
chore: update version
2022-09-27 22:44:12 +08:00
long2ice
f8e1f9ff44
fix: initialize an empty database. ( #267 )
2022-09-27 22:42:54 +08:00
long2ice
28d19a4b7b
- Fix syntax error with python3.8.10. ( #265 )
...
- Fix sql generate error. (#263 )
2022-09-26 18:36:57 +08:00
long2ice
9da99824fe
fix: postgres sql error ( #263 )
2022-09-23 23:33:49 +08:00
long2ice
e9b76bdd35
feat: use .py version files
2022-09-23 10:29:48 +08:00
Jinlong Peng
8c2ecbaef1
feat: support add/remove field with index
2022-08-26 18:04:20 +08:00
long2ice
e4bb9d838e
docs: update changelog
2022-06-27 11:41:48 +08:00
Isaque Alves
60ba6963fd
Update changelog
2022-06-22 09:22:26 -03:00
Isaque Alves
b4a735b814
fix: Adjust changelog formatting
2022-06-17 02:02:37 -03:00
Isaque Alves
83ba13e99a
Update changelog
2022-06-17 02:00:35 -03:00
long2ice
801dde15be
feat: inspectdb
support sqlite
2022-04-01 20:30:36 +08:00
long2ice
45129cef9f
feat: improve inspectdb
and support postgres
2022-04-01 19:56:48 +08:00
long2ice
f15cbaf9e0
Support migration for specified index. ( #203 )
2021-12-29 21:36:23 +08:00
long2ice
c60c1610f0
Fix pyproject.toml
not existing error. ( #217 )
2021-12-12 22:11:51 +08:00
long2ice
8b5cf6faa0
inspectdb
support DATE
. (#215 )
2021-12-08 14:33:27 +08:00
long2ice
fac00d45cc
Remove pydantic
dependency. ( #198 )
2021-10-04 23:05:20 +08:00
long2ice
b1521c4cc7
update version
2021-09-27 19:55:38 +08:00
long2ice
24c1f4cb7d
Change default config file from aerich.ini
to pyproject.toml
. ( #197 )
2021-09-27 11:05:20 +08:00
long2ice
699b0321a4
Support indexes
change. ( #193 )
2021-08-31 17:36:25 +08:00
long2ice
af63221875
Fix no module found error. ( #188 ) ( #189 )
2021-08-16 11:14:43 +08:00
Vovetta
d8abf79449
Updated changelog and version
2021-08-03 10:38:31 -07:00
long2ice
6f5a9ab78c
Add Command
class. ( #148 ) ( #141 ) ( #123 ) ( #106 )
2021-08-03 16:18:07 +08:00
long2ice
2da794d823
Fix db_constraint
when fk changed. ( #179 )
2021-07-22 14:37:49 +08:00
long2ice
77005f3793
Fix MySQL 5.X rename column.
2021-07-09 10:53:13 +08:00
Yusuke Sakai
3989b7c674
Update version and changelog
2021-07-08 18:01:59 +09:00