Statistics
| Branch: | Tag: | Revision:

root / snf-pithos-backend / pithos / backends / lib / sqlalchemy / alembic / script.py.mako @ 5f8bbf54

History | View | Annotate | Download (412 Bytes)

1 5f8bbf54 Sofia Papagiannaki
"""${message}
2 5f8bbf54 Sofia Papagiannaki
3 5f8bbf54 Sofia Papagiannaki
Revision ID: ${up_revision}
4 5f8bbf54 Sofia Papagiannaki
Revises: ${down_revision}
5 5f8bbf54 Sofia Papagiannaki
Create Date: ${create_date}
6 5f8bbf54 Sofia Papagiannaki
7 5f8bbf54 Sofia Papagiannaki
"""
8 5f8bbf54 Sofia Papagiannaki
9 5f8bbf54 Sofia Papagiannaki
# revision identifiers, used by Alembic.
10 5f8bbf54 Sofia Papagiannaki
revision = ${repr(up_revision)}
11 5f8bbf54 Sofia Papagiannaki
down_revision = ${repr(down_revision)}
12 5f8bbf54 Sofia Papagiannaki
13 5f8bbf54 Sofia Papagiannaki
from alembic import op
14 5f8bbf54 Sofia Papagiannaki
import sqlalchemy as sa
15 5f8bbf54 Sofia Papagiannaki
${imports if imports else ""}
16 5f8bbf54 Sofia Papagiannaki
17 5f8bbf54 Sofia Papagiannaki
def upgrade():
18 5f8bbf54 Sofia Papagiannaki
    ${upgrades if upgrades else "pass"}
19 5f8bbf54 Sofia Papagiannaki
20 5f8bbf54 Sofia Papagiannaki
21 5f8bbf54 Sofia Papagiannaki
def downgrade():
22 5f8bbf54 Sofia Papagiannaki
    ${downgrades if downgrades else "pass"}