v.2.27
Fixed reports
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AddOrderIdColumnInClientsActions extends Migration {
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up() {
|
||||
if (!Schema::hasColumn('clients_actions', 'order_id')) {
|
||||
Schema::table('clients_actions', function (Blueprint $table) {
|
||||
$table->integer('order_id')->nullable();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down() {
|
||||
Schema::table('clients_actions', function (Blueprint $table) {
|
||||
$table->dropColumn('order_id');
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class UpdateCoreInterface227 extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
$directivesUpd = CORE_PATH . '/../V1/forUpdate/toDirectives/';
|
||||
$indexUpd = CORE_PATH . '/../V1/forUpdate/toWebApp/';
|
||||
$servicesUpd = CORE_PATH . '/../V1/forUpdate/toServices/';
|
||||
$libsUpd = CORE_PATH . '/../V1/forUpdate/toLibs/datatables/';
|
||||
if (is_dir($directivesUpd)) {
|
||||
$files = array_diff(scandir($directivesUpd), array('.', '..'));
|
||||
foreach ($files as $file) {
|
||||
if (file_exists(CORE_PATH . '/../../web/app/scripts/directives/' . $file)) {
|
||||
copy(CORE_PATH . '/../../web/app/scripts/directives/' . $file, CORE_PATH . '/../../web/app/scripts/directives/' . $file . '.bak');
|
||||
}
|
||||
copy($directivesUpd . $file, CORE_PATH . '/../../web/app/scripts/directives/' . $file);
|
||||
}
|
||||
}
|
||||
if (is_dir($indexUpd)) {
|
||||
$files = array_diff(scandir($indexUpd), array('.', '..'));
|
||||
foreach ($files as $file) {
|
||||
if (file_exists(CORE_PATH . '/../../web/app/' . $file)) {
|
||||
copy(CORE_PATH . '/../../web/app/' . $file, CORE_PATH . '/../../web/app/' . $file . '.bak');
|
||||
}
|
||||
copy($indexUpd . $file, CORE_PATH . '/../../web/app/' . $file);
|
||||
}
|
||||
}
|
||||
if (is_dir($servicesUpd)) {
|
||||
$files = array_diff(scandir($servicesUpd), array('.', '..'));
|
||||
foreach ($files as $file) {
|
||||
if (file_exists(CORE_PATH . '/../../web/app/scripts/services/' . $file)) {
|
||||
copy(CORE_PATH . '/../../web/app/scripts/services/' . $file, CORE_PATH . '/../../web/app/scripts/services/' . $file . '.bak');
|
||||
}
|
||||
copy($servicesUpd . $file, CORE_PATH . '/../../web/app/scripts/services/' . $file);
|
||||
}
|
||||
}
|
||||
if (is_dir($libsUpd)) {
|
||||
$files = array_diff(scandir($libsUpd), array('.', '..'));
|
||||
if (!is_dir(CORE_PATH . '/../../web/libs/datatables/')) {
|
||||
mkdir(CORE_PATH . '/../../web/libs/datatables/', 0777);
|
||||
}
|
||||
foreach ($files as $file) {
|
||||
if (file_exists(CORE_PATH . '/../../web/libs/datatables/' . $file)) {
|
||||
copy(CORE_PATH . '/../../web/libs/datatables/' . $file, CORE_PATH . '/../../web/libs/datatables//' . $file . '.bak');
|
||||
}
|
||||
copy($libsUpd . $file, CORE_PATH . '/../../web/libs/datatables/' . $file);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
use App\Component\Models\Filesystem;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
class DeleteFrontendFolders227 extends Migration {
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up() {
|
||||
if (file_exists(CORE_PATH . '/../Staff/web/')) {
|
||||
Filesystem::ClearFolder((CORE_PATH . '/../Staff/web/'));
|
||||
} else {
|
||||
Log::debug('Staff frontend already deleted!');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down() {
|
||||
//
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user