mirror of
https://github.com/Mibew/mibew.git
synced 2024-11-15 08:34:11 +03:00
commit
28e968b15f
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mibew/mibew",
|
||||
"version": "3.0.0",
|
||||
"version": "3.1.0",
|
||||
"description": "Mibew Messenger - open-source live support application",
|
||||
"type": "project",
|
||||
"homepage": "http://mibew.org",
|
||||
|
@ -226,7 +226,7 @@ operatorstatistics:
|
||||
|
||||
revision:
|
||||
fields:
|
||||
id: "INT NOT NULL"
|
||||
id: "INT NOT NULL PRIMARY KEY"
|
||||
|
||||
# Contains relations between operators and groups
|
||||
operatortoopgroup:
|
||||
|
@ -439,4 +439,30 @@ class Updater
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
@ -20,7 +20,7 @@
|
||||
/**
|
||||
* Current version of Mibew Messenger
|
||||
*/
|
||||
define('MIBEW_VERSION', '3.0.0');
|
||||
define('MIBEW_VERSION', '3.1.0');
|
||||
|
||||
/**
|
||||
* Prefix for session variables.
|
||||
|
Loading…
Reference in New Issue
Block a user