From 918659ba36c55ec82e329f08fdb70a09d8f51ab5 Mon Sep 17 00:00:00 2001 From: michplunkett <5885605+michplunkett@users.noreply.github.com> Date: Mon, 22 Jul 2024 23:22:55 -0500 Subject: [PATCH] Update CONTRIB.md --- CONTRIB.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CONTRIB.md b/CONTRIB.md index 143635dc5..8af00f0cc 100644 --- a/CONTRIB.md +++ b/CONTRIB.md @@ -151,7 +151,6 @@ From here on out, we'll be using the Flask CLI. First we need to 'stamp' the cur ```shell $ docker exec -it openoversight-web-1 bash # 'openoversight-web-1' is the name of the app container seen in the step above $ flask db stamp head -$ flask db migrate -m "[THE NAME OF YOUR MIGRATION IN ALL LOWER CASE]" # NOTE: Slugs are limited to 40 characters and will be truncated after the limit ``` (Hint: If you get errors when running `flask` commands, e.g. because of differing Python versions, you may need to run the commands in the docker container by prefacing them as so: `docker exec -it openoversight_web_1 flask db stamp head`) @@ -159,7 +158,7 @@ $ flask db migrate -m "[THE NAME OF YOUR MIGRATION IN ALL LOWER CASE]" # NOTE: S Next make your changes to the database models in `OpenOversight/app/models/database.py`. You'll then generate the migrations: ```shell -$ flask db migrate -m "[THE NAME OF YOUR MIGRATION IN ALL LOWER CASE]" +$ flask db migrate -m "[THE NAME OF YOUR MIGRATION IN ALL LOWER CASE]" # NOTE: Slugs are limited to 40 characters and will be truncated after the limit ``` And then you should inspect/edit the migrations. You can then apply the migrations: