forked from apache/airflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for encrypting the connection extra field
- Loading branch information
Showing
3 changed files
with
52 additions
and
3 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
airflow/migrations/versions/bba5a7cfc896_add_a_column_to_track_the_encryption_.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,24 @@ | ||
"""Add a column to track the encryption state of the 'Extra' field in connection | ||
Revision ID: bba5a7cfc896 | ||
Revises: bbc73705a13e | ||
Create Date: 2016-01-29 15:10:32.656425 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'bba5a7cfc896' | ||
down_revision = 'bbc73705a13e' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
op.add_column('connection', sa.Column('is_extra_encrypted', sa.Boolean,default=False)) | ||
|
||
|
||
def downgrade(): | ||
op.drop_column('connection', 'is_extra_encrypted') |
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
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