Skip to content

Commit

Permalink
New scale table for PostgreSQL
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Aug 15, 2003
1 parent 37eef3e commit a142b3b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
12 changes: 12 additions & 0 deletions lib/db/postgres7.php
Expand Up @@ -208,6 +208,18 @@ function main_upgrade($oldversion=0) {
}
}

if ($oldversion < 2003081502) {
execute_sql(" CREATE TABLE {$CFG->prefix}scale (
id SERIAL PRIMARY KEY,
courseid integer NOT NULL default '0',
userid integer NOT NULL default '0',
name varchar(255) NOT NULL default '',
scale text,
description text,
timemodified integer NOT NULL default '0'
)");
}


return $result;
}
Expand Down
10 changes: 10 additions & 0 deletions lib/db/postgres7.sql
Expand Up @@ -103,6 +103,16 @@ CREATE TABLE prefix_modules (
visible integer NOT NULL default '1'
);
CREATE TABLE prefix_scale (
id SERIAL PRIMARY KEY,
courseid integer NOT NULL default '0',
userid integer NOT NULL default '0',
name varchar(255) NOT NULL default '',
scale text,
description text,
timemodified integer NOT NULL default '0'
);
CREATE TABLE prefix_user (
id SERIAL PRIMARY KEY,
confirmed integer NOT NULL default '0',
Expand Down
2 changes: 1 addition & 1 deletion version.php
Expand Up @@ -5,7 +5,7 @@
// database to determine whether upgrades should
// be performed (see lib/db/*.php)

$version = 2003081501; // The current version is a date (YYYYMMDDXX)
$version = 2003081502; // The current version is a date (YYYYMMDDXX)

$release = "1.1 development"; // User-friendly version number

Expand Down

0 comments on commit a142b3b

Please sign in to comment.