Waket Zheng
5d9adbdb54
chore: improve type hints ( #432 )
...
* chore: improve type hints
* chore: set `warn_unused_ignores` true for mypy
* refactor: use function to compare tortoise version
* refactor: change function name
2025-03-04 14:52:12 +08:00
Waket Zheng
6bdfdfc6db
fix: aerich migrate raises tortoise.exceptions.FieldError
when index.INDEX_TYPE
is not empty ( #415 )
...
* fix: aerich migrate raises `tortoise.exceptions.FieldError` when `index.INDEX_TYPE` is not empty
* feat: add `IF NOT EXISTS` to postgres create index template
* chore: explicit declare type hints of function parameters
2025-02-13 18:48:45 +08:00
Waket Zheng
ac847ba616
refactor: avoid updating inited config file ( #402 )
...
* refactor: avoid updating config file if init config items not changed
* fix unittest error with tortoise develop branch
* Remove extra space
* fix mysql test error
* fix mysql create index error
2025-01-04 09:08:14 +08:00
Waket Zheng
e4a3863f80
fix: aerich upgrade
raises OperationalError when unique constraint dropped at migration 1_xxx.py with postgres ( #383 )
2024-12-11 15:15:29 +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
Waket Zheng
e764bb56f7
Add new column for unique index remove test
2024-06-06 09:07:13 +08:00
Waket Zheng
e971653851
fix: mysql drop unique index migrate error
2024-06-05 23:37:30 +08:00
long2ice
8cf50c58d7
test: fix ci
2023-01-27 15:17:41 +08:00
Yasser Tahiri
40c7ef7fd6
Merge repeated if
statements into single if
2021-10-21 15:43:18 +01:00
long2ice
7bcf9b2fed
Support drop column
for sqlite. ( #40 )
2021-07-03 13:51:01 +08:00
long2ice
922e3eef16
Fix CI
2021-04-05 17:11:28 +08:00
long2ice
44d520cc82
Fix postgres field type change error. ( #135 )
2021-03-21 21:18:08 +08:00
long2ice
52151270e0
Fix bug for field change. ( #119 )
2021-03-03 20:36:54 +08:00
long2ice
09661c1d46
Fix unique_together
2021-02-04 14:39:07 +08:00
long2ice
abfa60133f
Fix drop table
2021-02-04 14:23:46 +08:00
long2ice
e3a14a2f60
Fix postgres index
2021-02-03 16:34:07 +08:00
long2ice
01e3de9522
basically completed
2021-02-03 15:43:04 +08:00
long2ice
c60bdd290e
add fk and drop fk
2021-02-02 20:35:05 +08:00
long2ice
f443dc68db
WIP
2021-02-01 16:54:35 +08:00
long2ice
f2013c931a
Fix test error
2020-11-16 22:32:19 +08:00
long2ice
4b0c4ae7d0
fix test error
2020-09-21 15:03:16 +08:00
long2ice
d18a6b5be0
add sqlite not support error
2020-09-21 11:44:34 +08:00
Adam Ciarciński
cda9bd1c47
Save 1 space in tests
2020-08-06 17:50:28 +02:00
Adam Ciarciński
1b440477a2
PostgreSQL add/drop index/unique
2020-08-06 17:45:56 +02:00
long2ice
2fcb2626fd
Fix postgres drop fk
2020-07-20 10:20:08 +08:00
long2ice
86e1d3defb
fix test error
2020-07-08 21:00:30 +08:00
Adam Ciarciński
90196eb1bf
Apply black
2020-07-08 14:38:42 +02:00
Adam Ciarciński
3c111792a9
Enhance PostgreSQL support
2020-07-07 19:54:55 +02:00
long2ice
c09c878eaf
add support modify column
...
diff mysql ddl
2020-05-26 10:22:02 +08:00
long2ice
6ffca1a0c7
add support modify column
2020-05-25 22:39:39 +08:00
long2ice
354e861dad
add more test
2020-05-24 13:47:10 +08:00
long2ice
23dd29644c
fix dependency import
2020-05-21 13:44:09 +08:00
long2ice
f5e5d24855
perfect test
2020-05-20 18:42:13 +08:00