Sfoglia il codice sorgente

add log table alembic

conradlan 3 anni fa
parent
commit
00233a8760

+ 30 - 0
.vscode/launch.json

@@ -0,0 +1,30 @@
+{
+    // Use IntelliSense to learn about possible attributes.
+    // Hover to view descriptions of existing attributes.
+    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
+    "version": "0.2.0",
+    "configurations": [
+        {
+            "name": "Python: FastAPI",
+            "type": "python",
+            "request": "launch",
+            "module": "uvicorn",
+            "args": [
+                "app.main:app",
+                "--host",
+                "0.0.0.0",
+                "--port",
+                "8751",
+                "--reload"
+            ],
+            "jinja": true
+        },
+        {
+            "name": "Python: Current File",
+            "type": "python",
+            "request": "launch",
+            "program": "${file}",
+            "console": "integratedTerminal"
+        }
+    ]
+}

+ 24 - 0
ark_table/versions/9fea1822cbc9_transaction_log_table.py

@@ -0,0 +1,24 @@
+"""transaction log table
+
+Revision ID: 9fea1822cbc9
+Revises: 0935df5094b3
+Create Date: 2021-12-27 11:25:39.645686
+
+"""
+from alembic import op
+import sqlalchemy as sa
+
+
+# revision identifiers, used by Alembic.
+revision = '9fea1822cbc9'
+down_revision = '0935df5094b3'
+branch_labels = None
+depends_on = None
+
+
+def upgrade():
+    pass
+
+
+def downgrade():
+    pass