https://dev.kronoz.win/r/marzneshin.git
| 1 |
a47eb4c |
Dawsh |
2y ago |
"""${message} |
| 2 |
a47eb4c |
Dawsh |
2y ago |
|
| 3 |
a47eb4c |
Dawsh |
2y ago |
Revision ID: ${up_revision} |
| 4 |
a47eb4c |
Dawsh |
2y ago |
Revises: ${down_revision | comma,n} |
| 5 |
a47eb4c |
Dawsh |
2y ago |
Create Date: ${create_date} |
| 6 |
a47eb4c |
Dawsh |
2y ago |
|
| 7 |
a47eb4c |
Dawsh |
2y ago |
""" |
| 8 |
a47eb4c |
Dawsh |
2y ago |
from alembic import op |
| 9 |
a47eb4c |
Dawsh |
2y ago |
import sqlalchemy as sa |
| 10 |
a47eb4c |
Dawsh |
2y ago |
${imports if imports else ""} |
| 11 |
a47eb4c |
Dawsh |
2y ago |
|
| 12 |
a47eb4c |
Dawsh |
2y ago |
# revision identifiers, used by Alembic. |
| 13 |
a47eb4c |
Dawsh |
2y ago |
revision = ${repr(up_revision)} |
| 14 |
a47eb4c |
Dawsh |
2y ago |
down_revision = ${repr(down_revision)} |
| 15 |
a47eb4c |
Dawsh |
2y ago |
branch_labels = ${repr(branch_labels)} |
| 16 |
a47eb4c |
Dawsh |
2y ago |
depends_on = ${repr(depends_on)} |
| 17 |
a47eb4c |
Dawsh |
2y ago |
|
| 18 |
a47eb4c |
Dawsh |
2y ago |
|
| 19 |
a47eb4c |
Dawsh |
2y ago |
def upgrade() -> None: |
| 20 |
a47eb4c |
Dawsh |
2y ago |
${upgrades if upgrades else "pass"} |
| 21 |
a47eb4c |
Dawsh |
2y ago |
|
| 22 |
a47eb4c |
Dawsh |
2y ago |
|
| 23 |
a47eb4c |
Dawsh |
2y ago |
def downgrade() -> None: |
| 24 |
a47eb4c |
Dawsh |
2y ago |
${downgrades if downgrades else "pass"} |