Skip to content

Commit

Permalink
Update install
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Thies committed Sep 9, 2023
1 parent 62fb691 commit 2abc5b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 18 deletions.
18 changes: 2 additions & 16 deletions db/install.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<XMLDB PATH="blocks/deft/db" VERSION="20230824" COMMENT="XMLDB file for Moodle blocks/deft"
<XMLDB PATH="blocks/deft/db" VERSION="20230909" COMMENT="XMLDB file for Moodle blocks/deft"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../lib/xmldb/xmldb.xsd"
>
Expand Down Expand Up @@ -48,7 +48,7 @@
<FIELD NAME="timemodified" TYPE="int" LENGTH="20" NOTNULL="false" SEQUENCE="false"/>
<FIELD NAME="mute" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
<FIELD NAME="status" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
<FIELD NAME="type" TYPE="char" LENGTH="40" NOTNULL="false" SEQUENCE="false"/>
<FIELD NAME="type" TYPE="char" LENGTH="40" NOTNULL="false" DEFAULT="venue" SEQUENCE="false"/>
</FIELDS>
<KEYS>
<KEY NAME="primary" TYPE="primary" FIELDS="id"/>
Expand Down Expand Up @@ -92,19 +92,5 @@
<KEY NAME="comitem" TYPE="unique" FIELDS="component, itemid"/>
</KEYS>
</TABLE>
<TABLE NAME="block_deft_publisher" COMMENT="Video publisher sessions">
<FIELDS>
<FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true"/>
<FIELD NAME="peerid" TYPE="int" LENGTH="10" NOTNULL="false" SEQUENCE="false"/>
<FIELD NAME="usermodified" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
<FIELD NAME="timecreated" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
<FIELD NAME="timemodified" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
</FIELDS>
<KEYS>
<KEY NAME="primary" TYPE="primary" FIELDS="id"/>
<KEY NAME="usermodified" TYPE="foreign" FIELDS="usermodified" REFTABLE="user" REFFIELDS="id"/>
<KEY NAME="peerid" TYPE="foreign" FIELDS="peerid" REFTABLE="peer" REFFIELDS="id"/>
</KEYS>
</TABLE>
</TABLES>
</XMLDB>
5 changes: 3 additions & 2 deletions db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function xmldb_block_deft_upgrade($oldversion) {
upgrade_block_savepoint(true, 2023040401, 'deft');
}

if ($oldversion < 2023042606) {
if ($oldversion < 2023042908) {

// Define field type to be added to block_deft_peer.
$table = new xmldb_table('block_deft_peer');
Expand All @@ -127,8 +127,9 @@ function xmldb_block_deft_upgrade($oldversion) {
if (!$dbman->field_exists($table, $field)) {
$dbman->add_field($table, $field);
}

// Deft savepoint reached.
upgrade_block_savepoint(true, 2023042606, 'deft');
upgrade_block_savepoint(true, 2023042908, 'deft');
}

return true;
Expand Down

0 comments on commit 2abc5b6

Please sign in to comment.