Adding some fields to mdl_event to facilitate iCalendar import/export.

This is a work in (sloooow) progress.
This commit is contained in:
defacer
2005-07-20 17:58:33 +00:00
parent 2ecdff7894
commit 98f8f9c218
5 changed files with 15 additions and 1 deletions
+5
View File
@@ -1473,6 +1473,11 @@ function main_upgrade($oldversion=0) {
}
}
if ($oldversion < 2005072000) { // Add a couple fields to mdl_event to work towards iCal import/export
table_column('event', '', 'uuid', 'char', '36', '', '', 'not null', 'visible');
table_column('event', '', 'sequence', 'integer', '10', 'unsigned', '1', 'not null', 'uuid');
}
return $result;
}
+2
View File
@@ -192,6 +192,8 @@ CREATE TABLE `prefix_event` (
`timestart` int(10) unsigned NOT NULL default '0',
`timeduration` int(10) unsigned NOT NULL default '0',
`visible` tinyint(4) NOT NULL default '1',
`uuid` char(36) NOT NULL default '',
`sequence` int(10) unsigned NOT NULL default '1',
`timemodified` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`),
+5
View File
@@ -1193,6 +1193,11 @@ function main_upgrade($oldversion=0) {
}
}
if ($oldversion < 2005072000) { // Add a couple fields to mdl_event to work towards iCal import/export
table_column('event', '', 'uuid', 'char', '36', '', '', 'not null', 'visible');
table_column('event', '', 'sequence', 'integer', '10', 'unsigned', '1', 'not null', 'uuid');
}
return $result;
}
+2
View File
@@ -126,6 +126,8 @@ CREATE TABLE prefix_event (
timestart integer NOT NULL default '0',
timeduration integer NOT NULL default '0',
visible integer NOT NULL default '1',
uuid char(36) NOT NULL default '',
sequence integer NOT NULL default '1',
timemodified integer NOT NULL default '0'
);
+1 -1
View File
@@ -6,7 +6,7 @@
// This is compared against the values stored in the database to determine
// whether upgrades should be performed (see lib/db/*.php)
$version = 2005071700; // YYYYMMDD = date
$version = 2005072000; // YYYYMMDD = date
// XY = increments within a single day
$release = '1.6 development'; // Human-friendly version name