66 lines
2.3 KiB
PHP
66 lines
2.3 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.INCO_SUIVI_ENVOI
|
|
* Type : TABLE
|
|
* Description : Réplication miroir pour INCO_SUIVI_ENVOI
|
|
*/
|
|
final class IncoSuiviEnvoiTable implements TableOrView
|
|
{
|
|
use IdentifiesTableOrView;
|
|
|
|
public static function schemaName(): string
|
|
{
|
|
return 'REFP';
|
|
}
|
|
|
|
public static function name(): string
|
|
{
|
|
return 'INCO_SUIVI_ENVOI';
|
|
}
|
|
|
|
public static function isView(): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public static function description(): string
|
|
{
|
|
return 'Objet miroir TABLE REFP.INCO_SUIVI_ENVOI 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')->primary()->comment('Oracle: NUMBER(10, 0) [PK]');
|
|
$table->unsignedBigInteger('ID_GESTION_ENVOI')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
|
$table->unsignedBigInteger('ID_INCO')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
|
$table->date('DATE_ENV_DEMANDE')->nullable()->comment('Oracle: DATE(0, 0)');
|
|
$table->date('DATE_ENV_REELLE')->nullable()->comment('Oracle: DATE(0, 0)');
|
|
$table->string('COD_UTIL', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->text('MOTIF')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
|
$table->text('NOM_FIC_GEN')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->boolean('ENVOI_ANO')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
$table->binary('PHOTO')->nullable()->comment('Oracle: BLOB(0, 0)');
|
|
});
|
|
}
|
|
|
|
public static function down(Builder $schema): void
|
|
{
|
|
$schema->dropIfExists(self::table($schema->getConnection()));
|
|
}
|
|
}
|