AhmadYarAI commited on
Commit
effbf87
·
1 Parent(s): b9ec576

Set the migration

Browse files
Files changed (1) hide show
  1. main.py +0 -5
main.py CHANGED
@@ -19,10 +19,6 @@ Base.metadata.create_all(bind=engine)
19
  def _ensure_schema():
20
  inspector = inspect(engine)
21
  migrations = {
22
- "invoices": {
23
- "patient_name": "VARCHAR",
24
- "shade": "VARCHAR",
25
- },
26
  "invoice_items": {
27
  "patient_name": "VARCHAR",
28
  "shade": "VARCHAR",
@@ -37,7 +33,6 @@ def _ensure_schema():
37
  if column_name in existing_columns:
38
  continue
39
  conn.execute(text(f"ALTER TABLE {table_name} ADD COLUMN {column_name} {column_type}"))
40
-
41
  _ensure_schema()
42
 
43
  app = FastAPI(title="SmiloCAD API", redirect_slashes=False)
 
19
  def _ensure_schema():
20
  inspector = inspect(engine)
21
  migrations = {
 
 
 
 
22
  "invoice_items": {
23
  "patient_name": "VARCHAR",
24
  "shade": "VARCHAR",
 
33
  if column_name in existing_columns:
34
  continue
35
  conn.execute(text(f"ALTER TABLE {table_name} ADD COLUMN {column_name} {column_type}"))
 
36
  _ensure_schema()
37
 
38
  app = FastAPI(title="SmiloCAD API", redirect_slashes=False)