()
| 53 | |
| 54 | |
| 55 | def run_migrations_offline() -> None: |
| 56 | context.configure( |
| 57 | url=url(), |
| 58 | target_metadata=target_metadata, |
| 59 | literal_binds=True, |
| 60 | dialect_opts={"paramstyle": "named"}, |
| 61 | compare_type=True, |
| 62 | compare_server_default=True, |
| 63 | ) |
| 64 | |
| 65 | with context.begin_transaction(): |
| 66 | context.run_migrations() |
| 67 | |
| 68 | |
| 69 | def do_run_migrations(connection: Connection) -> None: |