59 lines
1.7 KiB
PHP
59 lines
1.7 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.PALETTE_INCO
|
|
* Type : TABLE
|
|
* Description : Réplication miroir pour PALETTE_INCO
|
|
*/
|
|
final class PaletteIncoTable implements TableOrView
|
|
{
|
|
public static function schemaName(): string
|
|
{
|
|
return 'REFP';
|
|
}
|
|
|
|
public static function name(): string
|
|
{
|
|
return 'PALETTE_INCO';
|
|
}
|
|
|
|
public static function isView(): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public static function description(): string
|
|
{
|
|
return 'Objet miroir TABLE REFP.PALETTE_INCO 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->integer('ID')->primary()->comment('Oracle: NUMBER(5, 0) [PK]');
|
|
$table->text('LIBELLE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->integer('LONGUEUR')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
|
$table->integer('LARGEUR')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
|
$table->integer('HAUTEUR')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
|
$table->decimal('POIDS', 8, 3)->nullable()->comment('Oracle: NUMBER(8, 3)');
|
|
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
|
});
|
|
}
|
|
|
|
public static function down(Builder $schema): void
|
|
{
|
|
$schema->dropIfExists(self::name());
|
|
}
|
|
}
|