Commit Graph
12 Commits
Author SHA1 Message Date
David-Wobrock fe6433a065 Use a custom migration operation instead of a RunSQL statement 2018-12-23 17:46:57 +01:00
Felix 9e3dbf7778 Mark migrations as ignored 2018-12-23 17:46:57 +01:00
David-Wobrock 7364455073 Add test to assert that a not null FK on a new table is accepted 2018-05-07 20:36:20 +02:00
David-Wobrock 07de522fce Remove git samples 2018-01-20 16:02:58 +01:00
David-Wobrock 698e658faa Fix test : do not consider deleted migrations
* Change way to detect deleted migrations (diff-filter of 'git diff' command)
2018-01-20 15:50:45 +01:00
David-Wobrock fffdf5714e Fix that linter actually ignores deleted files and add a specific test for this 2018-01-18 23:56:33 +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 7007e788be Add django as a requirement to the linter
Obviously it is needed when generating the sql through the sqlmigrate command
2018-01-14 13:51:01 +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
David Wobrock c07aeea780 Remove from test git folders all hook .sample files 2017-11-21 15:50:47 +01:00
David-Wobrock 6f84056aeb Change git fixtures, do not use submodule or subtree
Just rename git folder when testing and delete them at the end
2017-11-01 15:28:17 +01:00
David-Wobrock 1cd36825c1 Start large refactoring of tests and project structure
* Put tests in tests/ diretory
* Write functional tests
* Create setup.py
* Put sources into django_migration_linter folder (for future PyPi publishing)
2017-10-30 23:31:13 +01:00