Fix migration
This commit is contained in:
miroman-afk
2023-08-11 12:08:55 +03:00
parent 0b5df57d08
commit 468cb21e40
3 changed files with 4 additions and 4 deletions

View File

@@ -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",

View File

@@ -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);

View File

@@ -1,5 +1,5 @@
[info]
name=V1
version=2.32
version=2.33
[build]
version=2.32
version=2.33