60 lines
1.7 KiB
PHP
60 lines
1.7 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.INCO_LANG
|
|
* Type : VIEW
|
|
* Description : Réplication miroir pour INCO_LANG
|
|
*/
|
|
final class IncoLangView implements TableOrView
|
|
{
|
|
use IdentifiesTableOrView;
|
|
|
|
public static function schemaName(): string
|
|
{
|
|
return 'GCP';
|
|
}
|
|
|
|
public static function name(): string
|
|
{
|
|
return 'INCO_LANG';
|
|
}
|
|
|
|
public static function isView(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public static function description(): string
|
|
{
|
|
return 'Objet miroir VIEW GCP.INCO_LANG 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->bigInteger('NO_ART')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
$table->bigInteger('COD_LANG')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
$table->bigInteger('IS_TRAD')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
$table->bigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
$table->dateTime('DAT_MAJ')->nullable()->comment('Oracle: TIMESTAMP(6)(6, 0)');
|
|
});
|
|
}
|
|
|
|
public static function down(Builder $schema): void
|
|
{
|
|
$schema->dropIfExists(self::table($schema->getConnection()));
|
|
}
|
|
}
|