Adding some fields to mdl_event to facilitate iCalendar import/export.
This is a work in (sloooow) progress.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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`),
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user