Commit Graph
24 Commits
Author SHA1 Message Date
Viktor Danyliuk db3be19f64 fix NOT_NULL migration test to avoid catching "DROP NOT NULL" 2019-07-29 21:05:12 +02:00
David Wobrock 19e54bba09 Refactor duplicated code in sql_analyser 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 af4b11c563 Document (README & CHANGELOG) and rename option to 'exclude-migration-tests' 2019-07-28 12:28:56 +02:00
vladmalynych 6bbf2a653c Fix linter 'line too long' 2019-07-28 12:28:56 +02:00
Vladyslav Malynych 8eede82a38 Exclude not critical test (#2)
* Exclude not critical test

* Add exclude-tests option

* Update documentation

* Clean forgotten print

* Improve Readme, with examples
2019-07-28 12:28:56 +02:00
Tobias Kroenke 08e15b84ae satisfy black 2019-05-19 22:29:02 +02:00
Tobias Kroenke 48cba37764 remove migration ignore sql analysis 2019-05-19 22:29:02 +02:00
Felix b7c3ee38d7 Use logger.debug() for lowlevel information
Effectivly this will prevent printing those lines
in a lot of default setups. Those lines make it quite
hard to understand the output of the liter.
2019-05-12 15:32:57 +02:00
David-Wobrock c3c1af113c Handle postgresql alter column type
ALTER TABLE table ALTER COLUMN column TYPE
2019-02-24 15:55:05 +01:00
Felix 92a686f13b Make imports relative 2019-01-05 22:24:33 +01:00
David-Wobrock 952e596d92 Bump copyright version to 2019 in files 2019-01-03 22:05:00 +01:00
David-Wobrock f05b199925 Black all files 2018-12-30 11:56:21 +01:00
David-Wobrock fe6433a065 Use a custom migration operation instead of a RunSQL statement 2018-12-23 17:46:57 +01:00
Felix 6fe51d2e08 Remove duplication 2018-12-23 17:46:57 +01:00
Felix 9e3dbf7778 Mark migrations as ignored 2018-12-23 17:46:57 +01:00
David-Wobrock c26bd2b628 Provide a default value to next() function in case of empty errors array 2018-09-06 21:47:28 +02:00
David-Wobrock 555d17adcd Rename log object to logger (to follow the standard) 2018-07-19 22:03:37 +02:00
Serj Zavadsky 10d36bbab2 logging config fixed (now logging is made not by root logger, but by 'django_migration_linter.sql_analyzer') 2018-07-19 22:01:12 +02:00
David-Wobrock eebbcc4cc0 Fix PEP8 requirement 2018-01-20 16:10:41 +01:00
David-Wobrock 3037585cc2 Fix #9 - add information message when altering columns - may be backward compatible 2018-01-20 15:59:38 +01:00
David-Wobrock e4880c5600 Consider altering a column as backward incompatible
* Resolves #9
* With test
* For mysql only currently
2018-01-14 15:52:46 +01:00
David-Wobrock 55e1e13ad5 Update copyright year to 2018 2018-01-07 12:15:23 +01:00
David Wobrock 50ce4f4cad Large code refactoring
* Add tests
* Remove git dependency (only needed when a git identifier is specified)
2017-11-29 23:57:23 +01:00