63 lines
2 KiB
PHP
63 lines
2 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Database\ArcadiaReplicate\Tables\Refp;
|
|
|
|
use Database\ArcadiaReplicate\IdentifiesTableOrView;
|
|
use Database\ArcadiaReplicate\TableOrView;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Schema\Builder;
|
|
|
|
/**
|
|
* Schéma Oracle : REFP.FAM_RGPT
|
|
* Type : TABLE
|
|
* Description : Réplication miroir pour FAM_RGPT
|
|
*/
|
|
final class FamRgptTable implements TableOrView
|
|
{
|
|
use IdentifiesTableOrView;
|
|
|
|
public static function schemaName(): string
|
|
{
|
|
return 'REFP';
|
|
}
|
|
|
|
public static function name(): string
|
|
{
|
|
return 'FAM_RGPT';
|
|
}
|
|
|
|
public static function isView(): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public static function description(): string
|
|
{
|
|
return 'Objet miroir TABLE REFP.FAM_RGPT 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('COD_FAMRGPT')->primary()->comment('Oracle: NUMBER(0, 0) [PK]');
|
|
$table->text('LIB_FAMRGPT')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->bigInteger('COD_FAMANA')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
$table->integer('NO_ORDRE')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
|
$table->bigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
$table->unsignedBigInteger('SECT_ANA_SITE')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
|
$table->unsignedBigInteger('SECT_ANA_INTERFILIALE')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
|
$table->boolean('CARAC_ELEVAGE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
});
|
|
}
|
|
|
|
public static function down(Builder $schema): void
|
|
{
|
|
$schema->dropIfExists(self::table($schema->getConnection()));
|
|
}
|
|
}
|