Dispensing Vet
This commit is contained in:
@@ -230,6 +230,10 @@ def migrate_compliance_schema() -> None:
|
||||
)
|
||||
print("Backfilled dispensing mode where missing")
|
||||
|
||||
if _table_exists(cursor, "dispensings") and not _column_exists(cursor, "dispensings", "prescribing_vet"):
|
||||
cursor.execute("ALTER TABLE dispensings ADD COLUMN prescribing_vet VARCHAR")
|
||||
print("Added dispensings.prescribing_vet")
|
||||
|
||||
# Seed default locations once table exists (created via SQLAlchemy create_all).
|
||||
if _table_exists(cursor, "locations"):
|
||||
cursor.execute("INSERT OR IGNORE INTO locations(name, is_active) VALUES ('Cupboard', 1)")
|
||||
|
||||
Reference in New Issue
Block a user