Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 4, 2023
1 parent 0484179 commit 7e6e229
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MIGRATIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

1. Create a Django migration file without running it using `docker exec -it cl-django python manage.py makemigrations <app_name>`
- Give the migration file a name of what it does.
- If the migration doesn't do anything (like, it just tweaks the `choices` parameter), give it a `_noop.py` suffix.
- If the migration doesn't do anything (like, it just tweaks the `choices` parameter), give it a `_noop.py` suffix.
2. Generate raw SQL for the migration you just made on the command line using `docker exec -it cl-django python sqlmigrate search <id_of_migration>`.
3. Copy and paste that into a `.sql` file right next to to the migration file that was generated (give the SQL file the same name as the migration file).
4. Tweak the raw SQL as needed to avoid the issues outlined below, if any.
Expand Down

0 comments on commit 7e6e229

Please sign in to comment.