Skip to content

Commit

Permalink
dev: some changes to test update of "users" table. MS SQL not tested …
Browse files Browse the repository at this point in the history
…yet. Carsten, can you give it a try? You like MS SQL most ;-)

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey181@6561 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
maziminke committed Mar 19, 2009
1 parent 721259d commit 9c9d88e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 3 additions & 2 deletions admin/install/create-odbc_mssql.sql
Expand Up @@ -286,7 +286,8 @@ CREATE TABLE [prefix_users] (
[configurator] TINYINT NOT NULL default '0',
[manage_template] TINYINT NOT NULL default '0',
[manage_label] TINYINT NOT NULL default '0',
[htmleditormode] char(7) default 'default'
[htmleditormode] char(7) default 'default',
[one_time_pw] TEXT
)
;

Expand Down Expand Up @@ -357,7 +358,7 @@ CREATE TABLE [prefix_templates] (
-- Table [settings_global]
--

INSERT INTO [prefix_settings_global] VALUES ('DBVersion', '132');
INSERT INTO [prefix_settings_global] VALUES ('DBVersion', '133');
INSERT INTO [prefix_settings_global] VALUES ('SessionName', '$sessionname');

--
Expand Down
5 changes: 5 additions & 0 deletions admin/install/upgrade-odbc_mssql.php
Expand Up @@ -239,6 +239,11 @@ function db_upgrade($oldversion) {
modify_database("","ALTER TABLE [prefix_surveys] ADD [publicgraphs] char(1) NOT NULL default 'N'"); echo $modifyoutput; flush();
modify_database("","update [prefix_settings_global] set [stg_value]='132' where stg_name='DBVersion'"); echo $modifyoutput; flush();
}
if ($oldversion < 133)
{
modify_database("","ALTER TABLE [prefix_users] ADD [one_time_pw] text"); echo $modifyoutput; flush();
modify_database("","update [prefix_settings_global] set [stg_value]='133' where stg_name='DBVersion'"); echo $modifyoutput; flush();
}
return true;
}

Expand Down

0 comments on commit 9c9d88e

Please sign in to comment.