68 lines
2.4 KiB
PHP
68 lines
2.4 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.SERVICE_CONSO_INCO
|
|
* Type : TABLE
|
|
* Description : Réplication miroir pour SERVICE_CONSO_INCO
|
|
*/
|
|
final class ServiceConsoIncoTable implements TableOrView
|
|
{
|
|
use IdentifiesTableOrView;
|
|
|
|
public static function schemaName(): string
|
|
{
|
|
return 'REFP';
|
|
}
|
|
|
|
public static function name(): string
|
|
{
|
|
return 'SERVICE_CONSO_INCO';
|
|
}
|
|
|
|
public static function isView(): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public static function description(): string
|
|
{
|
|
return 'Objet miroir TABLE REFP.SERVICE_CONSO_INCO 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->text('NOM')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->text('ADRESSE1')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->text('ADRESSE2')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->string('CP', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->string('VILLE', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->text('TELEPHONE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->text('MAIL')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->string('FAX', 120)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->integer('MARQUE')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
|
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
|
$table->text('LIB')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
$table->text('SITE_INT')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
|
});
|
|
}
|
|
|
|
public static function down(Builder $schema): void
|
|
{
|
|
$schema->dropIfExists(self::table($schema->getConnection()));
|
|
}
|
|
}
|