58 lines
1.7 KiB
PHP
58 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.ASSO_INCO_ZONE_VERSIO_QUAL
|
|
* Type : TABLE
|
|
* Description : Réplication miroir pour ASSO_INCO_ZONE_VERSIO_QUAL
|
|
*/
|
|
final class AssoIncoZoneVersioQualTable implements TableOrView
|
|
{
|
|
public static function schemaName(): string
|
|
{
|
|
return 'REFP';
|
|
}
|
|
|
|
public static function name(): string
|
|
{
|
|
return 'ASSO_INCO_ZONE_VERSIO_QUAL';
|
|
}
|
|
|
|
public static function isView(): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public static function description(): string
|
|
{
|
|
return 'Objet miroir TABLE REFP.ASSO_INCO_ZONE_VERSIO_QUAL 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->dateTime('DAT_CRE')->nullable()->comment('Oracle: TIMESTAMP(6)(6, 0)');
|
|
$table->dateTime('DAT_MAJ')->nullable()->comment('Oracle: TIMESTAMP(6)(6, 0)');
|
|
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
|
$table->integer('NO_ART')->comment('Oracle: NUMBER(6, 0) [PK]');
|
|
$table->string('NOM_ZONE_MM', 191)->comment('Oracle: VARCHAR2(0, 0) [PK]');
|
|
$table->primary(['NOM_ZONE_MM', 'NO_ART']);
|
|
});
|
|
}
|
|
|
|
public static function down(Builder $schema): void
|
|
{
|
|
$schema->dropIfExists(self::name());
|
|
}
|
|
}
|