migration: add private key to build triggers
This commit is contained in:
parent
5a29218c5c
commit
93a9e9d01a
3 changed files with 27 additions and 0 deletions
|
@ -379,6 +379,7 @@ class RepositoryBuildTrigger(BaseModel):
|
|||
repository = ForeignKeyField(Repository, index=True)
|
||||
connected_user = QuayUserField()
|
||||
auth_token = CharField()
|
||||
private_key = TextField(null=True)
|
||||
config = TextField(default='{}')
|
||||
write_token = ForeignKeyField(AccessToken, null=True)
|
||||
pull_robot = QuayUserField(allows_robots=True, null=True, related_name='triggerpullrobot')
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
"""add private key to build triggers
|
||||
|
||||
Revision ID: 214350b6a8b1
|
||||
Revises: 2b2529fd23ff
|
||||
Create Date: 2015-03-19 14:23:52.604505
|
||||
|
||||
"""
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '214350b6a8b1'
|
||||
down_revision = '2b2529fd23ff'
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
def upgrade(tables):
|
||||
### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('repositorybuildtrigger', sa.Column('private_key', sa.Text(), nullable=True))
|
||||
### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade(tables):
|
||||
### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column('repositorybuildtrigger', 'private_key')
|
||||
### end Alembic commands ###
|
Binary file not shown.
Reference in a new issue