Commit Graph
7 Commits
Author SHA1 Message Date
David Wobrock b9768534d1 Bump to 5.1.0. 2024-03-30 11:51:27 +01:00
Deven Dayal a230681de5 Don't consider partial unique index creation as making a column not nullable. 2024-03-30 11:48:49 +01:00
Artem Streltsov b15924ca0f Allow ignoring sqlmigrate errors. 2024-03-30 11:36:10 +01:00
David Wobrock 18a39cb3fc Support Django 5.0 db_default attribute.
A DB default is not considered backward incompatible, as the default value is kept on DB-level.
See https://docs.djangoproject.com/en/dev/releases/5.0/#database-computed-default-values
2024-03-29 12:39:30 +01:00
Artem Streltsov abb6233f44 Ignore 'IS NOT NULL' statements. 2024-02-04 20:33:26 +01:00
Lie Ryan d677c08a07 Avoid using shell when spawning subprocess for git
This avoids security shenanigans that can come if your `git-commit-id`
may come from potentially untrusted source (e.g. an API), an attacker
could trick you to run shell commands like:

    ./manage.py lintmigrations --git-commit-id '; rm -rf dangerous'

or a malicious project may set a config like:

    [tool.django_migration_linter]
    git_commit_id = "; rm -rf dangerous"
2024-02-04 19:53:48 +01:00
David Wobrock 0320cf10dd Migrate from setup.py and setup.cfg to pyproject.toml 2023-10-29 10:56:37 +01:00