2 Commits
Author SHA1 Message Date
Mikuláš Poul 28a0686d3b Detect NULL default value as no default value.
This can happen when using `db_default=None` with `null=False` on a Django model field.
2025-11-30 12:45:24 +01:00
Mikuláš Poul 979b6b1046 Allow ignoring initial migrations
Sometimes, if your apps have cyclic dependencies or complicated FK structure,
django migrations creates multiple initial migration files, which can very
easily fail linting because they are adding foreign keys or constraints etc.

This adds an option to automatically ignore all initial migrations.
2025-03-30 19:29:56 +02:00