v.2.33
Fix migration
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hrc-admin/hello-world",
|
||||
"version": "2.32",
|
||||
"version": "2.33",
|
||||
"require": {
|
||||
"horeca/admin-php-module-core": "dev-master",
|
||||
"guzzlehttp/guzzle": "^7.4",
|
||||
|
||||
@@ -54,7 +54,7 @@ class UpdateCoreInterface230 extends Migration
|
||||
if (!is_dir(CORE_PATH . '/../../web/libs/datatables/backup/')) {
|
||||
mkdir(CORE_PATH . '/../../web/libs/datatables/backup/', 0777);
|
||||
}
|
||||
$old_files = array_diff(scandir(CORE_PATH . '/../../web/libs/datatables/'), array('.', '..'));
|
||||
$old_files = array_diff(scandir(CORE_PATH . '/../../web/libs/datatables/'), array('.', '..', 'backup'));
|
||||
foreach ($old_files as $old_file) {
|
||||
copy(CORE_PATH . '/../../web/libs/datatables/' . $old_file, CORE_PATH . '/../../web/libs/datatables/backup/' . $old_file);
|
||||
unlink(CORE_PATH . '/../../web/libs/datatables/' . $old_file);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[info]
|
||||
name=V1
|
||||
version=2.32
|
||||
version=2.33
|
||||
[build]
|
||||
version=2.32
|
||||
version=2.33
|
||||
|
||||
Reference in New Issue
Block a user