David Wobrock
e86f8a7df2
Bump to 2.3.0
2020-06-20 18:09:05 +02:00
David Wobrock
b3816613d5
Fix #115 -- Detect correctly if a field ends with a default value or a dropped default
2020-06-20 18:08:16 +02:00
David Wobrock
f21ff2c278
Add (failing) tests cases for makeing a column not null with a Django default value
2020-06-20 18:08:16 +02:00
David Wobrock
d411ea2f6b
Unrelated: remove unused Django boilerplate files
2020-06-20 18:08:16 +02:00
David Wobrock
9c4788d851
Update testing libs
2020-06-20 17:51:30 +02:00
David Wobrock
7780a6d838
Bump Flake8 version to 3.8.3
2020-06-17 22:33:03 +02:00
David Wobrock
31338714dd
Fix #112 -- make the behaviour of --include-migrations-from more obvious
...
* Misspelled filename => fail (instead of linting all migrations and ignoring the error)
* An empty file/a file with no valid migration paths => lint no migrations (instead oflinting all migrations)
* If the option is not specified, keep the behaviour of linting all migrations
2020-06-17 22:32:42 +02:00
David Wobrock
799957a556
Bump to 2.2.2
2020-05-26 18:12:17 +02:00
David Wobrock
dd13787bef
Fix #110 -- Don't pin dependencies but only define minimal version
2020-05-26 18:10:48 +02:00
David-Wobrock
a5e17d0df1
Bump to 2.2.1 and black some files
2020-05-16 21:16:36 +02:00
David Wobrock
d02d3455db
Bump to 2.2.0
2020-05-11 18:04:53 +02:00
David Wobrock
264e1cd61e
Fix #108 -- Don't strictly pin the 'appsdirs' dep
2020-05-11 18:04:15 +02:00
David-Wobrock
87040845ed
Fix #106 -- Add forgotten documentation about IgnoreMigration()
2020-05-04 20:41:51 +02:00
David Wobrock
87085a2cd4
Start changelog of unreleased 2.2.0
2020-03-13 23:24:39 +01:00
David Wobrock
c048bdf745
Simplify print statements
2020-03-13 23:24:39 +01:00
David Wobrock
41a5dc731b
Bump to 2.1.0 and update CHANGELOG
2020-02-08 22:38:05 +01:00
David Wobrock
52254d030c
Add six to tox dependencies
2020-02-08 22:38:05 +01:00
David Wobrock
cb6961539c
Handle for forward and backward data migration imports
2020-02-08 22:38:05 +01:00
David Wobrock
1e8fb95a8a
Bump to v2.0.0 and set to production ready tool
2020-02-07 23:29:15 +01:00
David Wobrock
19023626e6
Introduce a first PY2/PY3 difference for inspect.get(full)argspec call
2020-02-07 23:29:15 +01:00
David Wobrock
a0e7ca099b
Simplify passing migration object directly into analysing data migration
2020-02-07 23:29:15 +01:00
David Wobrock
553ed41cc4
Update Travis config with warnings and info on build
2020-02-07 23:29:15 +01:00
David Wobrock
9f22116541
Black the code
2020-02-07 23:29:15 +01:00
David Wobrock
2e7eec42c2
Remove the 'warn' in front of warning messages
2020-02-07 23:29:15 +01:00
David Wobrock
a0d5e2940c
Import RunPython directly to avoid shadowing existing names
2020-02-07 23:29:15 +01:00
David Wobrock
1925343f4a
Move constants to specific file and remove unused import
2020-02-07 23:29:15 +01:00
David Wobrock
e49f6dea9c
Document, add to changelog the data migrations and rename to 'warnings-as-errors' (plural)
2020-02-07 23:29:15 +01:00
David Wobrock
71614bd377
Handle warning as error and exclude warning tests
2020-02-07 23:29:15 +01:00
David Wobrock
d01875b3be
add warnings and RunPython basic linting
2020-02-07 23:29:15 +01:00
David Wobrock
691b1b82cb
Add app_data_migration used for tests
2020-02-07 23:29:15 +01:00
David Wobrock
d410d2c7ba
Refactor some linting code to more intelligible conditions
2020-02-07 23:29:15 +01:00
David Wobrock
902752c3f1
Set theme jekyll-theme-slate
2020-02-07 23:28:15 +01:00
David Wobrock
d3fd1518ea
Bump to version 1.5.0
2020-01-26 11:56:42 +01:00
David-Wobrock
03863532e7
Update CHANGELOG.md with Django 3.0
2020-01-11 22:50:27 +01:00
David-Wobrock
21e3cfda4c
Add Django3 build to travis.yml configuration
2020-01-11 22:50:27 +01:00
David-Wobrock
fe230872eb
Add Django3 to test matrix and setup.py metadata
2020-01-11 22:50:27 +01:00
David-Wobrock
5bd1145272
Update tox to latest version
2020-01-11 22:50:27 +01:00
David-Wobrock
0fdff490b6
Add information to how to configure test databases
2020-01-11 22:35:20 +01:00
David-Wobrock
83f7da532f
Reformat setup.py with black
2020-01-11 22:35:20 +01:00
David-Wobrock
75d34f50f8
Add documentation change to CHANGELOD.md
2020-01-11 22:35:20 +01:00
David-Wobrock
0d5422363d
Update setup.py to use markdown readme file
2020-01-11 22:35:20 +01:00
David-Wobrock
f9dc725e00
Split documentation to multiple files in docs/ and use markdown
2020-01-11 22:35:20 +01:00
David Wobrock
813c5c8690
Remove apache license headers in each file. The one full copy of the license at the root of the repo shall define the license for all source files.
2020-01-11 22:08:33 +01:00
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
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
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
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
David Wobrock
85b9abdbc3
Display information that a problem has been found but ignored (and therefore the migration is considered ok)
2019-07-28 12:28:56 +02:00
David Wobrock
aa8043db74
Add unit test for exclude migration tests
2019-07-28 12:28:56 +02:00
David Wobrock
af4b11c563
Document (README & CHANGELOG) and rename option to 'exclude-migration-tests'
2019-07-28 12:28:56 +02:00
David Wobrock
e93d4ec4c7
Bump to version 1.2.0 and update CHANGELOG.md
2019-07-10 10:26:42 +02:00
David Wobrock
83850fa3da
Update README: document 'applied-migrations' and 'unapplied-migrations' options
2019-06-06 22:54:08 +02:00
David Wobrock
5561a308a3
Add tests for ignore applied/unapplied migrations
2019-06-06 22:54:08 +02:00
David Wobrock
19fe5b75fe
Add logic to ignore applied or unapplied migrations
2019-06-06 22:54:08 +02:00
David Wobrock
ba0704ef3a
Always load migrations from database:
...
This enables us to detect if a migration has been applied to a certain database.
No matter if the migrations and detected from git or all, we always match them with the migrations found by Django.
2019-06-06 22:54:08 +02:00
David Wobrock
3273f1bdc4
Add exclusive options for linting only applied or unapplied migrations
2019-06-06 22:54:08 +02:00
David Wobrock
b17c872996
Update README: consistent command line options and remove obsolete option
2019-06-06 22:54:08 +02:00
David Wobrock
42a83f18a0
Bump version to 1.1.0 and add note in CHANGELOG
2019-05-19 22:51:54 +02:00
David Wobrock
9d5f16c0b1
Update README: add note on how I usually publish the package
2019-05-19 22:51:53 +02:00
David Wobrock
e948a93399
Update README: remove the code-block for the Operation SQL
2019-05-19 22:42:43 +02:00