Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes per testing in StageDB, change of product name. #671

Merged
merged 1 commit into from
Jun 26, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 16 additions & 6 deletions sql/upgrade/14.0/add_webrt.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
DO $f$
BEGIN

PERFORM 1 FROM products WHERE product_name = 'WebRuntime';
PERFORM 1 FROM products WHERE product_name = 'WebappRuntime';

IF NOT FOUND THEN

Expand All @@ -12,23 +12,33 @@ IF NOT FOUND THEN
rapid_release_version,
release_name
) VALUES (
'WebRuntime',
'WebappRuntime',
7,
'15.0',
'webruntime'
'16.0',
'webappruntime'
);

INSERT INTO product_release_channels (
product_name, release_channel, throttle )
SELECT 'WebRuntime', release_channel, 1.0
SELECT 'WebappRuntime', release_channel, 1.0
FROM release_channels;

INSERT INTO product_productid_map (
product_name, productid, rewrite,
version_began, version_ended )
VALUES ( 'WebRuntime', 'webapprt@mozilla.org', true,
VALUES ( 'WebappRuntime', 'webapprt@mozilla.org', true,
'0.0',NULL);

INSERT INTO transform_rules
(category, rule_order, predicate, predicate_args,
predicate_kwargs, action, action_args, action_kwargs)
values
('processor.json_rewrite', 3,
'socorro.processor.processor.json_equal_predicate', '',
'key="ProductName", value="Webapp Runtime"',
'socorro.processor.processor.json_reformat_action', '',
'key="ProductName", format_str="WebappRuntime"');

ELSE
RAISE INFO 'WebRuntime already in database, skipping';

Expand Down
4 changes: 2 additions & 2 deletions sql/upgrade/14.0/update_products.sql
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ WHERE build_type ILIKE 'Release'
-- release for WebRT

INSERT INTO releases_recent
SELECT 'WebRuntime',
SELECT 'WebappRuntime',
version, beta_number, build_id,
build_type, platform,
is_rapid, repository
FROM releases_recent
JOIN products
ON products.product_name = 'WebRuntime'
ON products.product_name = 'WebappRuntime'
WHERE releases_recent.product_name = 'Firefox'
AND major_version_sort(releases_recent.version)
>= major_version_sort(products.rapid_release_version);
Expand Down