2026-08-26 15:22:00 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
namespace Database\ArcadiaReplicate\Views\Refp;
|
|
|
|
|
|
2026-08-31 11:13:34 +02:00
|
|
|
use Database\ArcadiaReplicate\IdentifiesTableOrView;
|
2026-08-26 15:22:00 +02:00
|
|
|
use Database\ArcadiaReplicate\TableOrView;
|
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
|
use Illuminate\Database\Schema\Builder;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Schéma Oracle : REFP.DUN_INCO_NOSOC
|
|
|
|
|
* Type : VIEW
|
|
|
|
|
* Description : Réplication miroir pour DUN_INCO_NOSOC
|
|
|
|
|
*/
|
|
|
|
|
final class DunIncoNosocView implements TableOrView
|
|
|
|
|
{
|
2026-08-31 11:13:34 +02:00
|
|
|
use IdentifiesTableOrView;
|
|
|
|
|
|
2026-08-26 15:22:00 +02:00
|
|
|
public static function schemaName(): string
|
|
|
|
|
{
|
|
|
|
|
return 'REFP';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static function name(): string
|
|
|
|
|
{
|
|
|
|
|
return 'DUN_INCO_NOSOC';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static function isView(): bool
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static function description(): string
|
|
|
|
|
{
|
|
|
|
|
return 'Objet miroir VIEW REFP.DUN_INCO_NOSOC du métamodèle Arcadia.';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static function up(Builder $schema): void
|
|
|
|
|
{
|
|
|
|
|
if (app()->environment('local', 'testing')) {
|
2026-08-31 11:13:34 +02:00
|
|
|
$schema->dropIfExists(self::table($schema->getConnection()));
|
2026-08-26 15:22:00 +02:00
|
|
|
}
|
|
|
|
|
|
2026-08-31 11:13:34 +02:00
|
|
|
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
2026-08-26 15:22:00 +02:00
|
|
|
$table->bigInteger('NO_ART')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
|
|
|
$table->text('DUN14')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
|
|
|
$table->string('DUN_PALETTE', 56)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
|
|
|
$table->boolean('IS_STANDARD')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
|
|
|
$table->bigInteger('TYPE_CARTON')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
|
|
|
$table->bigInteger('SOCIETE')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
|
|
|
$table->decimal('LONGUEUR_COL', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
|
|
|
|
$table->decimal('LARGEUR_COL', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
|
|
|
|
$table->decimal('HAUTEUR_COL', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
|
|
|
|
$table->bigInteger('PDS_NET_COL')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
|
|
|
$table->bigInteger('TARE_COL')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
|
|
|
$table->bigInteger('PDS_BRUT_COL')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
|
|
|
$table->integer('LONGUEUR_PAL')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
|
|
|
|
$table->integer('LARGEUR_PAL')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
|
|
|
|
$table->decimal('HAUTEUR_PAL', 16, 6)->nullable()->comment('Oracle: NUMBER(16, 6)');
|
|
|
|
|
$table->bigInteger('TARE_PAL')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
|
|
|
$table->bigInteger('PDS_NET_PAL')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
|
|
|
$table->bigInteger('PDS_BRUT_PAL')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
|
|
|
$table->smallInteger('NB_COLIS_COUCHE')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
|
|
|
|
$table->smallInteger('NB_COUCHE_PALETTE')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
|
|
|
|
$table->integer('NB_COLIS_PALETTE')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
|
|
|
|
$table->bigInteger('NB_UVC_PALETTE')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
|
|
|
$table->bigInteger('HAUTEUR_PAL_CHARG')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
|
|
|
$table->bigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
|
|
|
$table->bigInteger('COD_PCB')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
|
|
|
$table->bigInteger('IS_SOC_SRDI')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
|
|
|
$table->bigInteger('FICHE_MERE')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
|
|
|
$table->bigInteger('COD_MARQUE')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
|
|
|
$table->unsignedBigInteger('VERSION')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
|
|
|
|
$table->boolean('ACTIVE')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
|
|
|
|
$table->string('COD_GENCOD_ADM', 52)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
|
|
|
$table->string('COD_GENCOD_SYMB', 52)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
|
|
|
$table->string('COD_GENCOD_POIDS', 52)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
|
|
|
$table->smallInteger('EXPLOITANT')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
|
|
|
|
$table->smallInteger('COD_FAMVTE')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
|
|
|
|
$table->bigInteger('COD_SOUSFAM')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
|
|
|
$table->unsignedBigInteger('SITE_REF_INCO')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
|
|
|
|
$table->bigInteger('SOC_REF_INCO')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static function down(Builder $schema): void
|
|
|
|
|
{
|
2026-08-31 11:13:34 +02:00
|
|
|
$schema->dropIfExists(self::table($schema->getConnection()));
|
2026-08-26 15:22:00 +02:00
|
|
|
}
|
|
|
|
|
}
|