Commit 7afbe6ca authored by Donal McMullan's avatar Donal McMullan

Create auth_instance record for mandatory internal auth plugin

parent a8d56b68
<?xml version="1.0" encoding="UTF-8" ?>
<XMLDB PATH="lib/db" VERSION="20061127" COMMENT="XMLDB file for Mahara's blog-related tables"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../lib/xmldb/xmldb.xsd"
>
<STATEMENTS>
<STATEMENT NAME="insert auth_instance" TYPE="insert" TABLE="auth_instance">
<SENTENCES>
<SENTENCE TEXT="(instancename, priority, institution, authname) VALUES ('internal', 1, 'mahara','internal')" />
</SENTENCES>
</STATEMENT>
</XMLDB>
<?php
function xmldb_auth_internal_upgrade($oldversion=0) {
if ($oldversion < 2007062900) {
$record = new stdClass();
$record->instancename='internal';
$record->priority='1';
$record->institution='mahara';
$record->authname='internal';
return insert_record('auth_instance',$record);
}
return true;
}
?>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment