forked from mozilla-services/socorro
-
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.
Merge pull request mozilla-services#3237 from rhelmer/bug1255444-fix-…
…fennecandroid-for-new-release-repo bug 1255444 fix fennecandroid for new release repository
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
alembic/versions/335c2bfd99a6_bug_1255444_fix_fennecandroid_for_new_.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,44 @@ | ||
"""bug 1255444 fix fennecandroid for new release repository | ||
Revision ID: 335c2bfd99a6 | ||
Revises: 9371b45451b | ||
Create Date: 2016-03-10 13:24:35.662063 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '335c2bfd99a6' | ||
down_revision = '9371b45451b' | ||
|
||
from alembic import op | ||
from socorrolib.lib import citexttype, jsontype, buildtype | ||
from socorrolib.lib.migrations import fix_permissions, load_stored_proc | ||
|
||
import sqlalchemy as sa | ||
from sqlalchemy import types | ||
from sqlalchemy.dialects import postgresql | ||
from sqlalchemy.sql import table, column | ||
|
||
def upgrade(): | ||
op.execute(""" | ||
INSERT INTO release_repositories VALUES ('mozilla-central-android-api-15'); | ||
INSERT INTO release_repositories VALUES ('mozilla-aurora-android-api-15'); | ||
INSERT INTO release_repositories VALUES ('mozilla-beta-android-api-15'); | ||
INSERT INTO release_repositories VALUES ('mozilla-release-android-api-15'); | ||
INSERT INTO special_product_platforms (platform, repository, release_channel, release_name, product_name, min_version) VALUES ('android-arm', 'mozilla-central-android-api-15', 'nightly', 'mobile', 'FennecAndroid', '37.0'); | ||
INSERT INTO special_product_platforms (platform, repository, release_channel, release_name, product_name, min_version) VALUES ('android-arm', 'mozilla-aurora-android-api-15', 'aurora', 'mobile', 'FennecAndroid', '37.0'); | ||
INSERT INTO special_product_platforms (platform, repository, release_channel, release_name, product_name, min_version) VALUES ('android-arm', 'mozilla-beta-android-api-15', 'beta', 'mobile', 'FennecAndroid', '37.0'); | ||
INSERT INTO special_product_platforms (platform, repository, release_channel, release_name, product_name, min_version) VALUES ('android-arm', 'mozilla-release-android-api-15', 'release', 'mobile', 'FennecAndroid', '37.0'); | ||
""") | ||
|
||
def downgrade(): | ||
op.execute(""" | ||
DELETE FROM release_repositories WHERE repository = 'mozilla-central-android-api-15'; | ||
DELETE FROM release_repositories WHERE repository = 'mozilla-aurora-android-api-15'; | ||
DELETE FROM release_repositories WHERE repository = 'mozilla-beta-android-api-15'; | ||
DELETE FROM release_repositories WHERE repository = 'mozilla-release-android-api-15'; | ||
DELETE FROM special_product_platforms WHERE platform = 'android-arm' AND repository = 'mozilla-central-android-api-15' AND release_channel = 'nightly' AND release_name = 'mobile' AND product_name = 'FennecAndroid' AND min_version = '37.0'; | ||
DELETE FROM special_product_platforms WHERE platform = 'android-arm' AND repository = 'mozilla-aurora-android-api-15' AND release_channel = 'aurora' AND release_name = 'mobile' AND product_name = 'FennecAndroid' AND min_version = '37.0'; | ||
DELETE FROM special_product_platforms WHERE platform = 'android-arm' AND repository = 'mozilla-beta-android-api-15' AND release_channel = 'beta' AND release_name = 'mobile' AND product_name = 'FennecAndroid' AND min_version = '37.0'; | ||
DELETE FROM special_product_platforms WHERE platform = 'android-arm' AND repository = 'mozilla-release-android-api-15' AND release_channel = 'release' AND release_name = 'mobile' AND product_name = 'FennecAndroid' AND min_version = '37.0'; | ||
""") |