From: jungwirr Date: Wed, 8 Oct 2003 18:02:10 +0000 (+0000) Subject: added official support for postgres7 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=aa47f2710d32ed0d83c48957a7a541806d00063a;p=moodle.git added official support for postgres7 --- diff --git a/mod/attendance/db/postgres7.php b/mod/attendance/db/postgres7.php new file mode 100644 index 0000000000..6f4af9fdb5 --- /dev/null +++ b/mod/attendance/db/postgres7.php @@ -0,0 +1,24 @@ +prefix}attendance set edited = 1;"); + } + if ($oldversion < 2003092500) { + table_column("attendance", "", "autoattend", "integer", 2, "unsigned", "0", "not null"); + } + + return true; +} + +?> diff --git a/mod/attendance/db/postgres7.sql b/mod/attendance/db/postgres7.sql new file mode 100644 index 0000000000..170336037c --- /dev/null +++ b/mod/attendance/db/postgres7.sql @@ -0,0 +1,32 @@ +# +# Table structure for table `prefix_attendance` +# + +CREATE TABLE prefix_attendance ( + id SERIAL, + name varchar(255) NOT NULL default '', + course int4 NOT NULL default '0', + day int4 NOT NULL default '0', + hours int2 NOT NULL default '0', + roll int2 NOT NULL default '0', + notes varchar(64) NOT NULL default '', + timemodified int4 NOT NULL default '0', + dynsection int2 NOT NULL default '0', + edited int2 NOT NULL default '0', + autoattend int2 NOT NULL default '0', + PRIMARY KEY(id) +); + +# +# Table structure for table `prefix_attendance_roll` +# + +CREATE TABLE prefix_attendance_roll ( + id SERIAL, + dayid int4 NOT NULL default '0', + userid int4 NOT NULL default '0', + hour int2 NOT NULL default '0', + status int4 NOT NULL default '0', + notes varchar(64) NOT NULL default '', + PRIMARY KEY (id) +);