v.2.30
Добавлен расширенный отчет по реализации Добавлен монитор активности
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AddNameColumnToTerminals extends Migration {
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up() {
|
||||
|
||||
if (!Schema::hasColumn('terminals', 'name')) {
|
||||
Schema::table('terminals', function (Blueprint $table) {
|
||||
$table->string('name')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down() {
|
||||
Schema::table('terminals', function (Blueprint $table) {
|
||||
$table->dropColumn('name');
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AddImageColumnToPlaces extends Migration {
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up() {
|
||||
|
||||
if (!Schema::hasColumn('places', 'image')) {
|
||||
Schema::table('places', function (Blueprint $table) {
|
||||
$table->text('image')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down() {
|
||||
Schema::table('places', function (Blueprint $table) {
|
||||
$table->dropColumn('image');
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class UpdateCoreInterface230 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_new/';
|
||||
$cssUpd = CORE_PATH . '/../V1/forUpdate/toCss/';
|
||||
$libsUpdXlsx = CORE_PATH . '/../V1/forUpdate/toXlsx/';
|
||||
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);
|
||||
} else {
|
||||
mkdir(CORE_PATH . '/../../web/libs/datatables/backup/', 0777);
|
||||
$old_files = array_diff(scandir(CORE_PATH . '/../../web/libs/datatables/'), array('.', '..'));
|
||||
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);
|
||||
}
|
||||
}
|
||||
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);
|
||||
}
|
||||
}
|
||||
if (is_dir($cssUpd)) {
|
||||
$files = array_diff(scandir($cssUpd), array('.', '..'));
|
||||
foreach ($files as $file) {
|
||||
if (file_exists(CORE_PATH . '/../../web/assets/styles/' . $file)) {
|
||||
copy(CORE_PATH . '/../../web/assets/styles/' . $file, CORE_PATH . '/../../web/assets/styles/' . $file . '.bak');
|
||||
}
|
||||
copy($cssUpd . $file, CORE_PATH . '/../../web/assets/styles/' . $file);
|
||||
}
|
||||
}
|
||||
if (is_dir($libsUpdXlsx)) {
|
||||
$files = array_diff(scandir($libsUpdXlsx), array('.', '..'));
|
||||
if (!is_dir(CORE_PATH . '/../../web/libs/xlsx/')) {
|
||||
mkdir(CORE_PATH . '/../../web/libs/xlsx/', 0777);
|
||||
}
|
||||
foreach ($files as $file) {
|
||||
if (file_exists(CORE_PATH . '/../../web/libs/xlsx/' . $file)) {
|
||||
copy(CORE_PATH . '/../../web/libs/xlsx/' . $file, CORE_PATH . '/../../web/libs/xlsx/' . $file . '.bak');
|
||||
}
|
||||
copy($cssUpd . $file, CORE_PATH . '/../../web/libs/xlsx/' . $file);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user