61 lines
1.8 KiB
PHP
61 lines
1.8 KiB
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace Database\ArcadiaReplicate\Tables\Refp;
|
||
|
|
|
||
|
|
use Database\ArcadiaReplicate\TableOrView;
|
||
|
|
use Illuminate\Database\Schema\Blueprint;
|
||
|
|
use Illuminate\Database\Schema\Builder;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Schéma Oracle : REFP.INCO_NEA
|
||
|
|
* Type : TABLE
|
||
|
|
* Description : Réplication miroir pour INCO_NEA
|
||
|
|
*/
|
||
|
|
final class IncoNeaTable implements TableOrView
|
||
|
|
{
|
||
|
|
public static function schemaName(): string
|
||
|
|
{
|
||
|
|
return 'REFP';
|
||
|
|
}
|
||
|
|
|
||
|
|
public static function name(): string
|
||
|
|
{
|
||
|
|
return 'INCO_NEA';
|
||
|
|
}
|
||
|
|
|
||
|
|
public static function isView(): bool
|
||
|
|
{
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
|
||
|
|
public static function description(): string
|
||
|
|
{
|
||
|
|
return 'Objet miroir TABLE REFP.INCO_NEA 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->unsignedBigInteger('CLE_SEQ')->primary()->comment('Oracle: NUMBER(10, 0) [PK]');
|
||
|
|
$table->unsignedBigInteger('NO_ART')->nullable()->comment('Oracle: NUMBER(15, 0)');
|
||
|
|
$table->string('NE', 12)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||
|
|
$table->string('ELEVE', 12)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||
|
|
$table->string('ABATTU', 12)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||
|
|
$table->date('DAT_CRE')->nullable()->comment('Oracle: DATE(0, 0)');
|
||
|
|
$table->date('DAT_MAJ')->nullable()->comment('Oracle: DATE(0, 0)');
|
||
|
|
$table->unsignedBigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
public static function down(Builder $schema): void
|
||
|
|
{
|
||
|
|
$schema->dropIfExists(self::name());
|
||
|
|
}
|
||
|
|
}
|