55 lines
1.4 KiB
PHP
55 lines
1.4 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Database\ArcadiaReplicate\Views\Refp;
|
|
|
|
use Database\ArcadiaReplicate\TableOrView;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Schema\Builder;
|
|
|
|
/**
|
|
* Schéma Oracle : REFP.INCO_SOC_REF_INCO
|
|
* Type : VIEW
|
|
* Description : Réplication miroir pour INCO_SOC_REF_INCO
|
|
*/
|
|
final class IncoSocRefIncoView implements TableOrView
|
|
{
|
|
public static function schemaName(): string
|
|
{
|
|
return 'REFP';
|
|
}
|
|
|
|
public static function name(): string
|
|
{
|
|
return 'INCO_SOC_REF_INCO';
|
|
}
|
|
|
|
public static function isView(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public static function description(): string
|
|
{
|
|
return 'Objet miroir VIEW REFP.INCO_SOC_REF_INCO du métamodèle Arcadia.';
|
|
}
|
|
|
|
public static function up(Builder $schema): void
|
|
{
|
|
if (app()->environment('local', 'testing')) {
|
|
$schema->dropIfExists(self::name());
|
|
}
|
|
|
|
$schema->create(self::name(), function (Blueprint $table): void {
|
|
$table->bigInteger('ID_INCO')->primary()->comment('Oracle: NUMBER(0, 0) [PK]');
|
|
$table->bigInteger('COD_SOC_FACT')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
$table->bigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
});
|
|
}
|
|
|
|
public static function down(Builder $schema): void
|
|
{
|
|
$schema->dropIfExists(self::name());
|
|
}
|
|
}
|