summaryrefslogtreecommitdiff
path: root/alembic/operations/ops.py
diff options
context:
space:
mode:
Diffstat (limited to 'alembic/operations/ops.py')
-rw-r--r--alembic/operations/ops.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/alembic/operations/ops.py b/alembic/operations/ops.py
index aab45d4..8dccc42 100644
--- a/alembic/operations/ops.py
+++ b/alembic/operations/ops.py
@@ -1214,9 +1214,10 @@ class CreateTableOp(MigrateOperation):
from sqlalchemy import Column, TIMESTAMP, func
# specify "DEFAULT NOW" along with the "timestamp" column
- op.create_table('account',
- Column('id', INTEGER, primary_key=True),
- Column('timestamp', TIMESTAMP, server_default=func.now())
+ op.create_table(
+ "account",
+ Column("id", INTEGER, primary_key=True),
+ Column("timestamp", TIMESTAMP, server_default=func.now()),
)
The function also returns a newly created