Skip to content

Commit

Permalink
Switched DB fields for Google Analytics to lower case
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_yii@12220 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Jan 26, 2012
1 parent d31916c commit 3d02765
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 16 deletions.
6 changes: 3 additions & 3 deletions installer/sql/create-mssql.sql
Expand Up @@ -263,7 +263,7 @@ CREATE TABLE [prefix_surveys] (
[startdate] DATETIME default NULL,
[expires] DATETIME default NULL,
[adminemail] VARCHAR(320) default NULL,
[anonymized] char(1) default NULL,
[anonymized] char(1) NOT NULL default 'N',
[faxto] VARCHAR(20) default NULL,
[format] char(1) default NULL,
[savetimings] char(1) default 'N',
Expand Down Expand Up @@ -312,8 +312,8 @@ CREATE TABLE [prefix_surveys] (
[navigationdelay] tinyint default '0',
[nokeyboard] char(1) default 'N',
[alloweditaftercompletion] char(1) default 'N',
[googleAnalyticsStyle] char(1) DEFAULT NULL,
[googleAnalyticsAPIKey] VARCHAR(25) DEFAULT NULL,
[googleanalyticsstyle] char(1) DEFAULT NULL,
[googleanalyticsapikey] VARCHAR(25) DEFAULT NULL,

PRIMARY KEY ([sid])
)
Expand Down
17 changes: 8 additions & 9 deletions installer/sql/create-mssqlnative.sql
Expand Up @@ -320,8 +320,8 @@ CREATE TABLE [prefix_surveys] (
[navigationdelay] tinyint default '0',
[nokeyboard] char(1) default 'N',
[alloweditaftercompletion] char(1) default 'N',
[googleAnalyticsStyle] char(1) DEFAULT NULL,
[googleAnalyticsAPIKey] VARCHAR(25) DEFAULT NULL,
[googleanalyticsstyle] char(1) DEFAULT NULL,
[googleanalyticsapikey] VARCHAR(25) DEFAULT NULL,

PRIMARY KEY ([sid])
)
Expand Down Expand Up @@ -494,8 +494,8 @@ CREATE TABLE [prefix_participant_attribute_names] (
-- Table structure for table participant attribute values
--
CREATE TABLE [prefix_participant_attribute_values] (
[attribute_id] int(11) NOT NULL,
[value_id] int(11) NOT NULL AUTO_INCREMENT,
[attribute_id] integer NOT NULL,
[value_id] integer NOT NULL AUTO_INCREMENT,
[value] varchar(20) NOT NULL,
PRIMARY KEY ([value_id])
);
Expand All @@ -504,7 +504,7 @@ CREATE TABLE [prefix_participant_attribute_values] (
--
CREATE TABLE [prefix_participant_shares] (
[participant_id] varchar(50) NOT NULL,
[shared_uid] int(11) NOT NULL,
[share_uid] integer NOT NULL,
[date_added] datetime,
[can_edit] varchar(5) NOT NULL,
PRIMARY KEY ([participant_id],[shared_uid])
Expand All @@ -514,9 +514,9 @@ CREATE TABLE [prefix_participant_shares] (
--
CREATE TABLE [prefix_survey_links] (
[participant_id] varchar(50) NOT NULL,
[token_id] int(11) NOT NULL,
[survey_id] int(11) NOT NULL,
[date_created] datetime,
[token_id] integer NOT NULL,
[survey_id] integer NOT NULL,
[date_created] datetime
PRIMARY KEY ([participant_id],[token_id],[survey_id])
);

Expand Down Expand Up @@ -566,4 +566,3 @@ create index [parent_qid_idx] on [prefix_questions] ([parent_qid]);
-- Version Info
--
INSERT INTO [prefix_settings_global] VALUES ('DBVersion', '155');
INSERT INTO [prefix_settings_global] VALUES ('SessionName', '$sessionname');
4 changes: 2 additions & 2 deletions installer/sql/create-mysql.sql
Expand Up @@ -299,8 +299,8 @@ CREATE TABLE `prefix_surveys` (
`navigationdelay` tinyint(2) default '0',
`nokeyboard` char(1) default 'N',
`alloweditaftercompletion` char(1) default 'N',
`googleAnalyticsStyle` char(1) DEFAULT NULL,
`googleAnalyticsAPIKey` VARCHAR(25) DEFAULT NULL,
`googleanalyticsstyle` char(1) DEFAULT NULL,
`googleanalyticsapikey` VARCHAR(25) DEFAULT NULL,
PRIMARY KEY(`sid`)
) ENGINE=MYISAM CHARACTER SET utf8 COLLATE utf8_unicode_ci;

Expand Down
4 changes: 2 additions & 2 deletions installer/sql/create-pgsql.sql
Expand Up @@ -309,8 +309,8 @@ CREATE TABLE prefix_surveys (
navigationdelay smallint DEFAULT '0',
nokeyboard character(1) DEFAULT 'N'::bpchar,
alloweditaftercompletion character(1) DEFAULT 'N'::bpchar,
googleAnalyticsStyle character(1) DEFAULT NULL,
googleAnalyticsAPIKey character varying(25) DEFAULT NULL,
googleanalyticsstyle character(1) DEFAULT NULL,
googleanalyticsapikey character varying(25) DEFAULT NULL,
CONSTRAINT prefix_surveys_pkey PRIMARY KEY (sid)
);

Expand Down

0 comments on commit 3d02765

Please sign in to comment.