Commit aeaedf1b authored by Robert Lyon's avatar Robert Lyon
Browse files

Adding in missing id column to usr_custom_layout table (bug 1239420)

Change-Id: I06fb412816c114397aa86c0a3d358c57ed56923f
Signed-off-by: Robert Lyon's avatarRobert Lyon <>
parent 3dc23222
......@@ -3247,8 +3247,10 @@ function xmldb_core_upgrade($oldversion=0) {
// 5. Create table usr_custom_layout
$table = new XMLDBTable('usr_custom_layout');
$table->addFieldInfo('id', XMLDB_TYPE_INTEGER, 10, null, XMLDB_NOTNULL, XMLDB_SEQUENCE);
$table->addFieldInfo('usr', XMLDB_TYPE_INTEGER, 10, null, XMLDB_NOTNULL);
$table->addFieldInfo('layout', XMLDB_TYPE_INTEGER, 10, null, XMLDB_NOTNULL);
$table->addKeyInfo('primary', XMLDB_KEY_PRIMARY, array('id'));
$table->addKeyInfo('usrfk', XMLDB_KEY_FOREIGN, array('usr'), 'usr', array('id'));
$table->addKeyInfo('layoutfk', XMLDB_KEY_FOREIGN, array('layout'), 'view_layout', array('id'));
Supports Markdown
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