63 lines
2 KiB
PHP
63 lines
2 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Database\ArcadiaReplicate\Views\Gcp;
|
|
|
|
use Database\ArcadiaReplicate\IdentifiesTableOrView;
|
|
use Database\ArcadiaReplicate\TableOrView;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Schema\Builder;
|
|
|
|
/**
|
|
* Schéma Oracle : GCP.V_INCO_ART_SITE
|
|
* Type : VIEW
|
|
* Description : Réplication miroir pour V_INCO_ART_SITE
|
|
*/
|
|
final class VIncoArtSiteView implements TableOrView
|
|
{
|
|
use IdentifiesTableOrView;
|
|
|
|
public static function schemaName(): string
|
|
{
|
|
return 'GCP';
|
|
}
|
|
|
|
public static function name(): string
|
|
{
|
|
return 'V_INCO_ART_SITE';
|
|
}
|
|
|
|
public static function isView(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public static function description(): string
|
|
{
|
|
return 'Objet miroir VIEW GCP.V_INCO_ART_SITE du métamodèle Arcadia.';
|
|
}
|
|
|
|
public static function up(Builder $schema): void
|
|
{
|
|
if (app()->environment('local', 'testing')) {
|
|
$schema->dropIfExists(self::table($schema->getConnection()));
|
|
}
|
|
|
|
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
|
$table->unsignedBigInteger('ID_SOCIETE')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
|
$table->unsignedBigInteger('NO_ART')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
|
$table->smallInteger('NIVEAU')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
|
$table->unsignedBigInteger('COD_SITE_GRP')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
|
$table->date('DATE_DEBUT_EFFET')->nullable()->comment('Oracle: DATE(0, 0)');
|
|
$table->date('DATE_FIN_EFFET')->nullable()->comment('Oracle: DATE(0, 0)');
|
|
$table->smallInteger('COD_ATELIER')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
|
$table->bigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
});
|
|
}
|
|
|
|
public static function down(Builder $schema): void
|
|
{
|
|
$schema->dropIfExists(self::table($schema->getConnection()));
|
|
}
|
|
}
|