mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
PHRAS-288 Check if storage engines is available
This commit is contained in:
@@ -211,7 +211,7 @@
|
||||
},
|
||||
success: function (data) {
|
||||
el_loader.css('visibility', 'hidden');
|
||||
if (data.connection === true && data.database === true) {
|
||||
if (data.connection === true && data.database === true && data.innodb === true) {
|
||||
el_status.attr('src', '/skins/icons/ok.png').show();
|
||||
el_message.empty().append("{% trans 'Successfull connection' %}");
|
||||
if (!data.is_empty) {
|
||||
@@ -223,6 +223,11 @@
|
||||
|
||||
return;
|
||||
}
|
||||
if (false === data.innodb) {
|
||||
el_message.empty().append("{% trans 'Database server does not support InnoDB storage engine' %}");
|
||||
|
||||
return;
|
||||
}
|
||||
if (data.connection === true) {
|
||||
el_message.empty().append("{% trans 'Connection is OK but database does not exists or can not be accessed' %}");
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user