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

DESENG-632 Add DB tables & API routes #2533

Merged
merged 4 commits into from
Jun 4, 2024
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
14 changes: 13 additions & 1 deletion met-api/migrations/README
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
Generic single-database configuration.
# Migrations

Uses alembic, SQL Alchemy, and flask-migrate to perform DB migrations.

To create a new revision:

`alembic revision -m "description of revision"`

## Languages

The list of languages in `supported_languages.json` has been taken from [https://www.w3schools.com/tags/ref_language_codes.asp](https://www.w3schools.com/tags/ref_language_codes.asp) and modified slightly to remove duplicate or multiple language codes per language.

A migration is run to insert these into the database as available languages in the app.
Loading