mirror of
https://github.com/Mibew/mibew.git
synced 2025-02-07 16:24:43 +03:00
parent
5921115af0
commit
0cf963ac5e
@ -226,7 +226,7 @@ operatorstatistics:
|
|||||||
|
|
||||||
revision:
|
revision:
|
||||||
fields:
|
fields:
|
||||||
id: "INT NOT NULL"
|
id: "INT NOT NULL PRIMARY KEY"
|
||||||
|
|
||||||
# Contains relations between operators and groups
|
# Contains relations between operators and groups
|
||||||
operatortoopgroup:
|
operatortoopgroup:
|
||||||
|
@ -439,4 +439,30 @@ class Updater
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Performs all database updates needed for 3.1.0.
|
||||||
|
*
|
||||||
|
* @return boolean True if the updates have been applied successfully and
|
||||||
|
* false otherwise.
|
||||||
|
*/
|
||||||
|
protected function update30100()
|
||||||
|
{
|
||||||
|
$db = $this->getDatabase();
|
||||||
|
|
||||||
|
if (!$db) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
// Alter plugin table.
|
||||||
|
$db->query('ALTER TABLE {revision} ADD PRIMARY KEY (id)');
|
||||||
|
} catch (\Exception $e) {
|
||||||
|
$this->errors[] = getlocal('Cannot update tables: {0}', $e->getMessage());
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user