Adding more ADRs and libraries
Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
This commit is contained in:
@@ -13,7 +13,7 @@ SQL DB Table
|
||||
|
||||
## Rationale
|
||||
|
||||
Because the system already is using an SQL Database, it makes sense to use a SQL table to store these values in a simple way that then can be retrieved and updated using the same basic SQL components other parts of the application use.
|
||||
Because the system already is using an SQL Database, it makes sense to use a SQL table to store these values in a simple way that then can be retrieved and updated using the same basic SQL components other parts of the application use. Actual application configuration would be through environment variales to comply with the 12-factor app.
|
||||
|
||||
## Status
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ Database models can be constructed in a few different ways in SQLAlchemy.
|
||||
|
||||
## Decision
|
||||
|
||||
Models will be defined as dataclasses.
|
||||
DB Models will be defined as dataclasses.
|
||||
|
||||
## Rationale
|
||||
|
||||
19
docs/adrs/009-db-migrations.md
Normal file
19
docs/adrs/009-db-migrations.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# ADR 009: Database Migrations
|
||||
|
||||
Database migrations will be important as the system evolves and changes, in order to protect the database and allow for everything to flow nicely.
|
||||
|
||||
## Decision
|
||||
|
||||
Alembic will be used for the database migrations.
|
||||
|
||||
## Rationale
|
||||
|
||||
Alembic is the defacto standard for SQLAlchemy migrations.
|
||||
|
||||
## Status
|
||||
|
||||
Accepted
|
||||
|
||||
## Consequences
|
||||
|
||||
Maintaining the SQL migrations will be key in order to ensure that the database is safely updated with changes as the code advances. It will be imperitive to keep the migrations up as the system is developed.
|
||||
Reference in New Issue
Block a user