-
-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IGCFile: Add
weglide_status
and weglide_data
fields
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
migrations/versions/58325345d375_add_weglide_fields_to_igcfile.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# revision identifiers, used by Alembic. | ||
revision = "58325345d375" | ||
down_revision = "70a6f5e6f0e1" | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects.postgresql import JSONB | ||
|
||
|
||
def upgrade(): | ||
op.add_column("igc_files", sa.Column("weglide_data", JSONB(), nullable=True)) | ||
op.add_column("igc_files", sa.Column("weglide_status", sa.Integer(), nullable=True)) | ||
|
||
|
||
def downgrade(): | ||
op.drop_column("igc_files", "weglide_status") | ||
op.drop_column("igc_files", "weglide_data") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters