Index: trunk/fundraiser-statistics/standalone-queries/create_tables_faulkner.sql |
— | — | @@ -1,57 +1,57 @@ |
2 | | -
|
3 | | -
|
4 | | -
|
5 | | -use faulkner;
|
6 | | -
|
7 | | -drop table if exists impression;
|
8 | | -drop table if exists landing_page;
|
9 | | -drop table if exists ip_country;
|
10 | | -
|
11 | | -
|
12 | | -
|
13 | | -create table impression (
|
14 | | - -- id int(10) unsigned NOT NULL auto_increment,
|
15 | | - run_id int(10) unsigned default NULL,
|
16 | | - utm_source varchar(128) default NULL,
|
17 | | - referrer varchar(128) default NULL,
|
18 | | - country varchar(128) default NULL,
|
19 | | - counts int(10) unsigned default NULL,
|
20 | | - on_minute timestamp,
|
21 | | - -- primary key (id),
|
22 | | - constraint imp_run_fk foreign key (run_id) references log_run (id) on delete cascade
|
23 | | -);
|
24 | | -
|
25 | | -create table landing_page (
|
26 | | - id int(10) unsigned NOT NULL auto_increment,
|
27 | | - -- run_id int(10) unsigned default NULL,
|
28 | | - utm_source varchar(128) default NULL,
|
29 | | - utm_campaign varchar(128) default NULL,
|
30 | | - utm_medium varchar(128) default NULL,
|
31 | | - landing_page varchar(128) default NULL,
|
32 | | - page_url varchar(1000) default NULL,
|
33 | | - referrer_url varchar(1000) default NULL,
|
34 | | - browser varchar(50) default NULL,
|
35 | | - lang varchar(20) default NULL, -- CHARACTER(2) NULL,
|
36 | | - country varchar(20) default NULL, -- CHARACTER(2) NULL,
|
37 | | - project varchar(128) default NULL,
|
38 | | - ip varchar(20) default NULL,
|
39 | | - request_time timestamp,
|
40 | | - primary key (id)
|
41 | | - -- constraint lp_tr_fk foreign key (test_run_id) references test_run (id) on delete cascade
|
42 | | -);
|
43 | | -
|
44 | | -
|
45 | | -create table ip_country (
|
46 | | -
|
47 | | - ip_from varchar(50) default NULL,
|
48 | | - ip_to varchar(50) default NULL,
|
49 | | - registry varchar(50) default NULL,
|
50 | | - assigned varchar(50) default NULL,
|
51 | | - country_ISO_1 varchar(50) default NULL,
|
52 | | - country_ISO_2 varchar(50) default NULL,
|
53 | | - country_name varchar(50) default NULL,
|
54 | | - primary key (ip_from)
|
55 | | -);
|
56 | | -
|
| 2 | + |
| 3 | + |
| 4 | +-- create tables in FAULKNER for recording test metric |
| 5 | + |
| 6 | +use faulkner; |
| 7 | + |
| 8 | +drop table if exists impression; |
| 9 | +drop table if exists landing_page; |
| 10 | +drop table if exists ip_country; |
| 11 | + |
| 12 | +-- drop table if exists treatment; |
| 13 | + |
| 14 | + |
| 15 | +create table impression ( |
| 16 | + -- id int(10) unsigned NOT NULL auto_increment, |
| 17 | + run_id int(10) unsigned default NULL, |
| 18 | + utm_source varchar(128) default NULL, |
| 19 | + referrer varchar(128) default NULL, |
| 20 | + country varchar(128) default NULL, |
| 21 | + counts int(10) unsigned default NULL, |
| 22 | + on_minute timestamp, |
| 23 | + -- primary key (id), |
| 24 | + constraint imp_run_fk foreign key (run_id) references log_run (id) on delete cascade |
| 25 | +); |
| 26 | + |
| 27 | +create table landing_page ( |
| 28 | + id int(10) unsigned NOT NULL auto_increment, |
| 29 | + -- run_id int(10) unsigned default NULL, |
| 30 | + utm_source varchar(128) default NULL, |
| 31 | + utm_campaign varchar(128) default NULL, |
| 32 | + utm_medium varchar(128) default NULL, |
| 33 | + landing_page varchar(128) default NULL, |
| 34 | + page_url varchar(1000) default NULL, |
| 35 | + referrer_url varchar(1000) default NULL, |
| 36 | + browser varchar(50) default NULL, |
| 37 | + lang varchar(20) default NULL, -- CHARACTER(2) NULL, |
| 38 | + country varchar(20) default NULL, -- CHARACTER(2) NULL, |
| 39 | + project varchar(128) default NULL, |
| 40 | + ip varchar(20) default NULL, |
| 41 | + request_time timestamp, |
| 42 | + primary key (id) |
| 43 | + -- constraint lp_tr_fk foreign key (test_run_id) references test_run (id) on delete cascade |
| 44 | +); |
| 45 | + |
| 46 | + |
| 47 | +create table ip_country ( |
| 48 | + |
| 49 | + ip_from varchar(50) default NULL, |
| 50 | + ip_to varchar(50) default NULL, |
| 51 | + registry varchar(50) default NULL, |
| 52 | + assigned varchar(50) default NULL, |
| 53 | + country_ISO_1 varchar(50) default NULL, |
| 54 | + country_ISO_2 varchar(50) default NULL, |
| 55 | + country_name varchar(50) default NULL, |
| 56 | + primary key (ip_from) |
| 57 | +); |
| 58 | + |
Property changes on: trunk/fundraiser-statistics/standalone-queries/create_tables_faulkner.sql |
___________________________________________________________________ |
Added: svn:eol-style |
57 | 59 | + native |
Property changes on: trunk/fundraiser-statistics/fundraiser-scripts/sql/report_banner_impressions_by_hour.sql |
___________________________________________________________________ |
Added: svn:eol-style |
58 | 60 | + native |
Property changes on: trunk/fundraiser-statistics/fundraiser-scripts/sql/report_confidence_lp.sql |
___________________________________________________________________ |
Added: svn:eol-style |
59 | 61 | + native |
Property changes on: trunk/fundraiser-statistics/fundraiser-scripts/sql/report_latest_campaign.sql |
___________________________________________________________________ |
Added: svn:eol-style |
60 | 62 | + native |
Property changes on: trunk/fundraiser-statistics/fundraiser-scripts/sql/report_lp_views_by_hour.sql |
___________________________________________________________________ |
Added: svn:eol-style |
61 | 63 | + native |
Property changes on: trunk/fundraiser-statistics/fundraiser-scripts/sql/report_confidence_banner.sql |
___________________________________________________________________ |
Added: svn:eol-style |
62 | 64 | + native |
Property changes on: trunk/fundraiser-statistics/fundraiser-scripts/sql/report_banner_confidence.sql |
___________________________________________________________________ |
Added: svn:eol-style |
63 | 65 | + native |
Property changes on: trunk/fundraiser-statistics/reporting/ecomm_test_by_hour.sql |
___________________________________________________________________ |
Added: svn:eol-style |
64 | 66 | + native |
Property changes on: trunk/fundraiser-statistics/reporting/ecomm_test_by_interval.sql |
___________________________________________________________________ |
Added: svn:eol-style |
65 | 67 | + native |
Property changes on: trunk/fundraiser-statistics/reporting/ecomm_test.sql |
___________________________________________________________________ |
Added: svn:eol-style |
66 | 68 | + native |
Property changes on: trunk/fundraiser-statistics/reporting/banner_test_by_banner.sql |
___________________________________________________________________ |
Added: svn:eol-style |
67 | 69 | + native |
Property changes on: trunk/fundraiser-statistics/reporting/banner_test_by_lp.sql |
___________________________________________________________________ |
Added: svn:eol-style |
68 | 70 | + native |
Property changes on: trunk/fundraiser-statistics/reporting/banner_test_by_interval.sql |
___________________________________________________________________ |
Added: svn:eol-style |
69 | 71 | + native |
Property changes on: trunk/fundraiser-statistics/reporting/landing_page_test_by_interval.sql |
___________________________________________________________________ |
Added: svn:eol-style |
70 | 72 | + native |
Property changes on: trunk/fundraiser-statistics/reporting/banner_test_banners_by_interval.sql |
___________________________________________________________________ |
Added: svn:eol-style |
71 | 73 | + native |
Property changes on: trunk/fundraiser-statistics/bash/plot_build_latest.sh |
___________________________________________________________________ |
Added: svn:eol-style |
72 | 74 | + native |