David Wobrock
b91c0c62db
Update README.rst
...
Correct the verbosity parameter
2019-12-02 13:50:40 +01:00
David Wobrock
948717f6e4
Bump to version 1.4.1
2019-12-01 11:37:14 +01:00
David Wobrock
18fa3bdb7a
Update testing dependencies (mysqlclient, do not let Django 2.2 overlap to 3.0 under dev, and update black)
2019-12-01 11:36:56 +01:00
David Wobrock
e57abd292f
Bump to version 1.4.0
2019-10-21 22:30:21 +02:00
David Wobrock
8ebfe4c605
Update all other test dependencies to last status
2019-10-21 22:28:44 +02:00
David Wobrock
22b7d0c02d
Update tox dep to latest (3.14.0)
2019-10-21 22:28:44 +02:00
David Wobrock
abb2971741
Update CHANGELOG with Python3.8 addition
2019-10-21 22:28:44 +02:00
David Wobrock
804c35c2d6
Add Python3.8 to Travis, tox and setup.py files
2019-10-21 22:28:44 +02:00
David Wobrock
c036a67346
Update CHANGELOG with table and column detection
2019-10-21 22:27:25 +02:00
David Wobrock
1d9f4b7b86
Make sqlite and mysql table and column detection a little bit more resilient for UX
2019-10-21 22:27:25 +02:00
David Wobrock
a31282a4d8
Make base detection of table and column more resilient
2019-10-21 22:27:25 +02:00
David Wobrock
7fad69659c
Refactor: move build_error_dict into the Analyser call, since it will be backend specific
2019-10-21 22:27:25 +02:00
David Wobrock
18c271101d
Refactor: remove redundant function call
2019-10-21 22:27:25 +02:00
David Wobrock
9a4951f86d
Add 'enum34' dep for a Python version previous to 3.4 (for 2.7 mostly)
2019-10-21 22:25:52 +02:00
David Wobrock
d7eb85709d
Add 'quiet' option to README and CHANGELOG
2019-10-21 22:25:52 +02:00
David Wobrock
ceabb40a62
Change migration linting prints to use conditined methods
2019-10-21 22:25:52 +02:00
David Wobrock
3b8e86fdf7
Add 'quiet' to argparsing and pass it to the linter
2019-10-21 22:25:52 +02:00
David Wobrock
72f066e710
Add MessageType enum for differentiating messages
2019-10-21 22:25:52 +02:00
David Wobrock
75be4d4258
Update CHANGELOG with many to many field handling
2019-10-21 22:25:01 +02:00
David Wobrock
537542b30d
Add manytomany app to test project and integration tests
2019-10-21 22:25:01 +02:00
David Wobrock
ca6b623200
Add unused app with manytomany field
2019-10-21 22:25:01 +02:00
David Wobrock
cbc5a623b0
Add unit tests on adding many to many field (by testing SQL directly)
2019-10-21 22:25:01 +02:00
David Wobrock
b252c203f5
Add logic that adding a unique constraint is only an error when the table has not been created in the same transaction
2019-10-21 22:25:01 +02:00
David Wobrock
6e64e447a9
Update CHANGELOG and README with --include-migrations-from info
2019-10-12 16:01:01 +02:00
David Wobrock
e6e8cc7525
Update migrations list file behaviour
...
Instead of using the file path when the git commit is not
added, use the file and the migrations list no matter if we select
all migrations or just from a certain git commit.
And unit tests :)
2019-10-12 15:53:18 +02:00
yongming
dbebda65d9
Fix help in command line, fix read file
2019-10-10 22:50:17 +02:00
yongming
adf61dd669
Add command to only check migration files in a given file
2019-10-10 22:50:17 +02:00
David Wobrock
14cafd017d
Bump to version 1.3.0
2019-07-30 10:47:58 +02:00
David Wobrock
5c5507a4c3
Also catch specific mysql errors during sqlmigrate
2019-07-30 10:47:20 +02:00
David Wobrock
c57d3c9286
Update README and CHANGELOG
2019-07-30 10:47:20 +02:00
David Wobrock
a74a7497ad
Catch exception if sqlmigrate fails
...
Because of missing constraint that Django cannot find and therefore drop.
2019-07-30 10:47:20 +02:00
David Wobrock
e408cd2c5e
Add SQL analyser logic for adding unique constraint
2019-07-30 10:47:20 +02:00
David Wobrock
652031ce8d
Add failing tests for unique_together condition
2019-07-30 10:47:20 +02:00
David Wobrock
8aac58abbe
Add app for unique together testing
2019-07-30 10:47:20 +02:00
David Wobrock
00826d399a
Update README and CHANGELOG
2019-07-29 23:14:30 +02:00
David Wobrock
f597df779b
Black test app migration
2019-07-29 23:14:30 +02:00
David Wobrock
4128c4b018
Add logic to detect DROP TABLE
2019-07-29 23:14:30 +02:00
Viktor Danyliuk
b79f9794ec
add testcase: drop table
2019-07-29 23:14:30 +02:00
David Wobrock
fc7a81e719
Update changelog
2019-07-29 21:05:12 +02:00
David Wobrock
eac9c5615f
Refactor sql_analyser into multiple classes for simpler extension in the future
2019-07-29 21:05:12 +02:00
David Wobrock
19620d9996
Handle other strategy for sqlite in Django2.2
2019-07-29 21:05:12 +02:00
David Wobrock
ef2052a7b0
Work on SQL Analyser module
...
* With database specific functions
* Functions that analyse the entire transaction
* Unit tests that only test this module
2019-07-29 21:05:12 +02:00
David Wobrock
d02df5d20f
Black migration file
2019-07-29 21:05:12 +02:00
Viktor Danyliuk
db3be19f64
fix NOT_NULL migration test to avoid catching "DROP NOT NULL"
2019-07-29 21:05:12 +02:00
Viktor Danyliuk
5e2c7bbfaf
add testcase for DROP NOT NULL
2019-07-29 21:05:12 +02:00
vladmalynych
cb5d3991ee
Fix Readme exclude-migration-tests option naming
2019-07-29 18:35:13 +02:00
David Wobrock
801096ece8
Clone the entire repo. The default=50 is now not going far enough for the unit tests (which use git tags)
2019-07-28 12:28:56 +02:00
David Wobrock
19e54bba09
Refactor duplicated code in sql_analyser
2019-07-28 12:28:56 +02:00
David Wobrock
43dc2dcabd
Lock lint dependencies
2019-07-28 12:28:56 +02:00
David Wobrock
7215afa4a4
Fix line too long (flake8)
2019-07-28 12:28:56 +02:00