Revert "Merge pull request #2844 from coreos-inc/alegrand/use_latest_appr_server_code"
This reverts commit646fafb2fd
, reversing changes made to5c1b635439
.
This commit is contained in:
parent
49df658e20
commit
9e09612851
16 changed files with 68 additions and 106 deletions
|
@ -1,35 +0,0 @@
|
|||
"""add_mediatypes
|
||||
|
||||
Revision ID: 5d4ae648155c
|
||||
Revises: d8989249f8f6
|
||||
Create Date: 2017-08-04 16:01:47.573800
|
||||
|
||||
"""
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '5d4ae648155c'
|
||||
down_revision = 'd8989249f8f6'
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
def upgrade(tables):
|
||||
mtypes = ['helm', 'kpm', 'docker-compose', 'ksonnet', 'appr', 'kubernetes']
|
||||
data = []
|
||||
for mtype in mtypes:
|
||||
data.append({'name': 'application/vnd.appr.package-manifest.%s.v0.json' % mtype})
|
||||
data.append({'name': 'application/vnd.appr.package.%s.v0.tar+gzip' % mtype})
|
||||
|
||||
op.bulk_insert(
|
||||
tables.mediatype,
|
||||
[
|
||||
{'name': 'application/vnd.appr.blob.v0.tar+gzip'},
|
||||
{'name': 'application/vnd.appr.manifests.v0.json'},
|
||||
{'name': 'application/vnd.appr.manifest.list.v0.json'},
|
||||
] + data,
|
||||
)
|
||||
|
||||
|
||||
def downgrade(tables):
|
||||
pass
|
Reference in a new issue