Commit Graph
405 Commits
Author SHA1 Message Date
dependabot[bot] 80b5c1dec8 Bump black from 21.12b0 to 22.1.0
Bumps [black](https://github.com/psf/black) from 21.12b0 to 22.1.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/commits/22.1.0)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-31 10:26:01 +01:00
David Wobrock 76a55dbb12 Raise when unsupported db vendor, and add option to specify SQL analyser 2022-01-30 15:20:18 +01:00
David Wobrock 71ddadda05 Add funtional tests for lintmigrations command 2022-01-28 21:48:05 +01:00
David Wobrock 85189b7c1d Refactor config and toml files read into staticmethods 2022-01-28 21:48:05 +01:00
David Wobrock 5a6ddd0d63 Allow overriding any option through config file, and not only a subset 2022-01-28 21:48:05 +01:00
David Wobrock 3219f9cf8a Handle creating a unique index as adding a unique constraint 2022-01-28 21:23:44 +01:00
David Wobrock 3fbc720650 Add Django 4.0 support 2022-01-28 21:03:12 +01:00
David Wobrock 3da14f769e Drop Django 3.1 support (ended in 2021) 2022-01-28 21:03:12 +01:00
David Wobrock bba8cd259b Add Python 3.10 support 2022-01-28 21:03:12 +01:00
David Wobrock 7280b18098 Drop Python 3.6 which reached EOL December 2021 2022-01-28 21:03:12 +01:00
David Wobrock 3076c88181 Add documentation about dropping a column in multiple steps 2022-01-28 20:39:59 +01:00
David Wobrock 7674a51bc9 Fix #178 -- Don't detect an index creation when the table is being created 2021-12-20 22:38:54 +01:00
David Wobrock 888305caaf Remove deprecated Python versions from GitHub Actions build 2021-12-20 22:38:30 +01:00
David Wobrock aef3db3e41 Remove 'Others' mention 2021-12-20 22:03:28 +01:00
David Wobrock 4e279a9450 Add a solution for RunPython import errors 2021-12-20 22:03:28 +01:00
David Wobrock fbd4b2971f Add documentation about all implemented backward incompatible migrations 2021-12-20 22:03:28 +01:00
David Wobrock 610e4646b8 Add table deletion case to doc 2021-12-20 22:03:28 +01:00
David Wobrock 0394377db0 Add emoji in backward incompatibilities titles 2021-12-20 22:03:28 +01:00
David Wobrock 410ac91fd3 Update a bit adding a not null column section 2021-12-20 22:03:28 +01:00
David Wobrock 88c7d4cd50 Reformat table in incompatibilites doc 2021-12-20 22:03:28 +01:00
David Wobrock 1f8476fc43 Add details about some backward incompatible operations
- adding a NOT NULL column
- dropping a column
- sqlite special case
2021-12-20 22:03:28 +01:00
David Wobrock 967047d4e6 Add type for each migration linter check
Add to the docs whether it raises an error or warning by default
2021-12-20 22:03:28 +01:00
dependabot[bot] d81a6720ef Bump black from 21.11b1 to 21.12b0
Bumps [black](https://github.com/psf/black) from 21.11b1 to 21.12b0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/commits)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-20 13:57:25 +01:00
dependabot[bot] 46ad466f4f Bump black from 21.10b0 to 21.11b1
Bumps [black](https://github.com/psf/black) from 21.10b0 to 21.11b1.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/commits)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-22 12:02:37 +01:00
David Wobrock 085048d22b Drop Py2.7, 3.5 and Django 1.11, 2.0, 2.1, 3.0 2021-11-12 17:26:38 +01:00
Daniel Hahler 6ba4010381 Fix/revisit docs
Started with a follow-up to fa9b2f97, which missed applying the fix to
docs, and then added some more while reading it.
2021-11-12 08:53:25 +01:00
dependabot[bot] 7520735aa2 Bump isort from 5.9.3 to 5.10.1
Bumps [isort](https://github.com/pycqa/isort) from 5.9.3 to 5.10.1.
- [Release notes](https://github.com/pycqa/isort/releases)
- [Changelog](https://github.com/PyCQA/isort/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pycqa/isort/compare/5.9.3...5.10.1)

---
updated-dependencies:
- dependency-name: isort
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-11 18:47:55 +01:00
dependabot[bot] 7a6123b0ed Bump black from 21.9b0 to 21.10b0
Bumps [black](https://github.com/psf/black) from 21.9b0 to 21.10b0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/commits)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-11 18:38:27 +01:00
dependabot[bot] db71a9db23 Bump flake8 from 3.9.2 to 4.0.1
Bumps [flake8](https://github.com/pycqa/flake8) from 3.9.2 to 4.0.1.
- [Release notes](https://github.com/pycqa/flake8/releases)
- [Commits](https://github.com/pycqa/flake8/compare/3.9.2...4.0.1)

---
updated-dependencies:
- dependency-name: flake8
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-22 23:59:04 +02:00
dependabot[bot] 41e6156704 Bump codecov/codecov-action from 1 to 2.1.0
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 1 to 2.1.0.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v1...v2.1.0)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-22 23:54:36 +02:00
dependabot[bot] 5bf0d538fe Bump black from 21.8b0 to 21.9b0
Bumps [black](https://github.com/psf/black) from 21.8b0 to 21.9b0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/commits)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-22 23:54:10 +02:00
David Wobrock 70cccda13e Set dependabot weekly interval and David as assignee 2021-10-22 23:45:11 +02:00
Łukasz Skarżyński 86eab0f5ab add initial dependabot configuration for github-actions 2021-10-22 23:45:11 +02:00
Łukasz Skarżyński 69fea7bd10 add initial dependabot configuration for pip 2021-10-22 23:45:11 +02:00
Łukasz Skarżyński fcf040d1e0 extract dev dependencies to requirements/dev.txt 2021-10-22 23:45:11 +02:00
David Wobrock 32ac098a02 The latest mysqlclient release candidate breaks the test suite for older Django versions 2021-10-22 23:40:05 +02:00
David Wobrock 8cf37cd0f2 Bump linting black to 21.8b0 2021-09-13 23:08:35 +02:00
David Wobrock 355852066a Bump linting isort to 5.9.3 2021-09-13 23:08:35 +02:00
Daniel Hahler 5a969b578e build(deps): drop six from requirements
It is only used in a single place to check for Python 2, which can
easily be inlined.
2021-09-13 23:04:37 +02:00
Raju Mazumder 1612ecc029 Raju | fix typo in incompatibilities doc 2021-09-07 09:47:10 +02:00
David Wobrock fce21b71e9 Bump to 3.0.1 and update changelog 2021-08-14 15:26:04 +02:00
Christian Bundy 397c1f0e16 Default ends_with_default to False
Problem: Previously in gh-117 we aimed to solve gh-115, which described a problem where we used `SET DEFAULT` and then `DROP DEFAULT` immediately afterward. The solution was to track whether any defaults are retained, but the `ends_with_default` variable is initialized as `None` rather than `False`. At the end of the function we check whether `ends_with_default is False`, never occurs unless a default is set.

Solution: Assume that there is no default unless proven otherwise, and iniitializie `ends_with_default` to `False` instead of `None`.

Fixes: gh-158
2021-08-14 15:22:24 +02:00
David Wobrock 3f0531f349 Bump to 3.0.0 2021-06-26 16:02:38 +02:00
David Wobrock 419f90e728 Fix #119 -- Handle verbosity=0 level correctly and suppress all prints/logs 2021-06-26 13:29:01 +02:00
David Wobrock 12255d9af4 Pin psycopg2 (for testing) <2.9 for GitHub Actions 2021-06-19 18:31:29 +02:00
David Wobrock fa56196f04 Add PG reindex linting warning and improve some smaller stuff 2021-06-19 18:15:40 +02:00
David Wobrock 6e15f65467 Fix typo in warning variable 2021-06-19 18:15:40 +02:00
David Wobrock 27e492996c Apply black 2021-06-19 18:15:40 +02:00
David Wobrock ea89043d8c Add to documentation 2021-06-19 18:15:40 +02:00
David Wobrock 2bf87c0659 Add Postgresql warning when using DROP INDEX without CONCURRENTLY keyword 2021-06-19 18:15:40 +02:00