}
}
+ if ($oldversion < 2006032900) {
+ global $db;
+ $data = $db->GetAll("SELECT id,refs FROM {$CFG->prefix}wiki_pages");
+ foreach ($data as $d) {
+ $db->AutoExecute("{$CFG->prefix}wiki_pages", array('refs_base64' => base64_encode($d['refs'])), 'UPDATE', 'id = '.$d['id']);
+ }
+ }
+
return true;
}
pagename VARCHAR(160) NOT NULL,
version INTEGER NOT NULL DEFAULT 0,
flags INTEGER DEFAULT 0,
- content TEXT,
+ content bytea,
author VARCHAR(100) DEFAULT 'ewiki',
userid INTEGER NOT NULL DEFAULT 0,
created INTEGER DEFAULT 0,
lastmodified INTEGER DEFAULT 0,
- refs TEXT,
+ refs bytea,
meta TEXT,
hits INTEGER DEFAULT 0,
wiki INT8 NOT NULL
/// This fragment is called by moodle_needs_upgrading() and /admin/index.php
/////////////////////////////////////////////////////////////////////////////////
-$module->version = 2005031000; // The current module version (Date: YYYYMMDDXX)
+$module->version = 2006032900; // The current module version (Date: YYYYMMDDXX)
$module->requires = 2005031000; // The current module version (Date: YYYYMMDDXX)
$module->cron = 0; // Period for cron to check this module (secs)