Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delete alembic script and update readme #74

Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 4 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ extension `.sh).

- `create_venv`: Creates a local virtual environment (`.venv/`) in which all dependencies may be
installed.
- `db_models_apply_schema`: Will apply all available SQL db schema revisions to the local SQL
database.
- `db_models_generate_new_revision`: Can be used to generate a new revision of the SQL db schema.
Expects 1 argument
e.g. `ci/linux/db_models_generate_new_revision.sh "this is the revision message`.
Expand Down Expand Up @@ -103,22 +101,13 @@ This will update the reference to point to the correct submodule commit.

First set up the development environment with `create_venv` and `install_dependencies`. Then you
can make the necessary changes to `omotes_orchestrator/db_models/`. Finally, a new SQL schema
revision may be generated using `alembic` by running `db_models_generate_new_revision`. In order to
apply
all database revisions you can run `db_models_apply_schema`.

Do not forget to actually start the PostgreSQL database locally!
This may be done with:

revision may be generated using `alembic` by running:
```bash
cd computation-engine-at-orchestrator/
cp .env-template .env
./scripts/setup.sh
./scripts/start_postgres_in_dev_mode.sh # This will start PostgreSQL with port 5432 opened on localhost
cd ../
./ci/linux/db_models_apply_schema.sh # Setup will not apply the current schema but only create the SQL database.
./ci/linux/db_models_generate_new_revision.sh "revision message"
```

All database revisions will be automatically applied when the orchestrator is started.

## Direct Alembic control

In case more control is necessary, you can run the necessary alembic commands directly after
Expand Down
7 changes: 0 additions & 7 deletions ci/win32/db_models_apply_schema.cmd

This file was deleted.

Loading