fix(oracle): support multi-schema queries and SID connection configuration
This commit is contained in:
parent
d1508fe22f
commit
55df66a1c8
69 changed files with 447 additions and 200 deletions
|
|
@ -38,11 +38,12 @@ ARCADIA_DB_DRIVER=oracle
|
|||
# ARCADIA_DB_TNS=
|
||||
ARCADIA_DB_HOST=127.0.0.1
|
||||
ARCADIA_DB_PORT=1521
|
||||
ARCADIA_DB=XEPDB1
|
||||
ARCADIA_DB_SERVICE_NAME=XEPDB1
|
||||
ARCADIA_DB_USERNAME=ORACLE
|
||||
ARCADIA_DB=XE
|
||||
ARCADIA_DB_SID=XE
|
||||
# ARCADIA_DB_SERVICE_NAME=
|
||||
ARCADIA_DB_USERNAME=DIGITAL
|
||||
ARCADIA_DB_PASSWORD=:Oracle.Docker2026
|
||||
ARCADIA_DB_SCHEMA=arcadia
|
||||
ARCADIA_DB_SCHEMA=
|
||||
# ARCADIA_DB_CHARSET=AL32UTF8
|
||||
# ARCADIA_DB_EDITION=ora$base
|
||||
# ARCADIA_DB_SERVER_VERSION=19c
|
||||
|
|
|
|||
|
|
@ -41,13 +41,14 @@ return [
|
|||
'tns' => env('ARCADIA_DB_TNS', ''),
|
||||
'host' => env('ARCADIA_DB_HOST', '127.0.0.1'),
|
||||
'port' => env('ARCADIA_DB_PORT', '1521'),
|
||||
'database' => env('ARCADIA_DB', 'XEPDB1'),
|
||||
'service_name' => env('ARCADIA_DB_SERVICE_NAME', 'XEPDB1'),
|
||||
'username' => env('ARCADIA_DB_USERNAME', 'DIGITAL'),
|
||||
'database' => env('ARCADIA_DB', env('ARCADIA_DB_SID', '')),
|
||||
'sid' => env('ARCADIA_DB_SID', ''),
|
||||
'service_name' => env('ARCADIA_DB_SERVICE_NAME', ''),
|
||||
'username' => env('ARCADIA_DB_USERNAME', ''),
|
||||
'password' => env('ARCADIA_DB_PASSWORD', ''),
|
||||
'charset' => env('ARCADIA_DB_CHARSET', 'AL32UTF8'),
|
||||
'prefix' => '',
|
||||
'prefix_schema' => env('ARCADIA_DB_SCHEMA', 'DIGITAL'),
|
||||
'prefix_schema' => env('ARCADIA_DB_SCHEMA', ''),
|
||||
'edition' => env('ARCADIA_DB_EDITION', 'ora$base'),
|
||||
'server_version' => env('ARCADIA_DB_SERVER_VERSION', '19c'),
|
||||
'max_name_len' => (int) env('ARCADIA_DB_MAX_NAME_LEN', 128),
|
||||
|
|
|
|||
|
|
@ -25,15 +25,17 @@ abstract class AbstractTableFactory implements TableFactory
|
|||
return resolve(ArcadiaStorageConfig::class)->databaseConnection;
|
||||
}
|
||||
|
||||
public static function tableName(): string
|
||||
public static function tableName(?string $connection = null): string
|
||||
{
|
||||
return static::table()::name();
|
||||
return static::table()::table($connection ?? static::connectionName());
|
||||
}
|
||||
|
||||
public static function query(?string $connection = null): Builder
|
||||
{
|
||||
return DB::connection($connection ?? static::connectionName())
|
||||
->table(static::tableName());
|
||||
$connName = $connection ?? static::connectionName();
|
||||
|
||||
return DB::connection($connName)
|
||||
->table(static::tableName($connName));
|
||||
}
|
||||
|
||||
public static function count(?string $connection = null): int
|
||||
|
|
@ -96,7 +98,7 @@ abstract class AbstractTableFactory implements TableFactory
|
|||
$data = $this->raw($attributes);
|
||||
|
||||
DB::connection($this->connection)
|
||||
->table(static::tableName())
|
||||
->table(static::tableName($this->connection))
|
||||
->insert($data);
|
||||
|
||||
return $data;
|
||||
|
|
|
|||
31
database/arcadia-replicate/IdentifiesTableOrView.php
Normal file
31
database/arcadia-replicate/IdentifiesTableOrView.php
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\ArcadiaReplicate;
|
||||
|
||||
use Illuminate\Database\Connection;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Infra\Config\ArcadiaStorageConfig;
|
||||
|
||||
trait IdentifiesTableOrView
|
||||
{
|
||||
/**
|
||||
* Nom complet qualifié de la table (ex: 'REFP.INCO' sous Oracle, 'INCO' sous SQLite/MySQL).
|
||||
*/
|
||||
public static function table(Connection | string | null $connection = null): string
|
||||
{
|
||||
if ($connection instanceof Connection) {
|
||||
$driver = $connection->getDriverName();
|
||||
} else {
|
||||
$connectionName = $connection ?? resolve(ArcadiaStorageConfig::class)->databaseConnection;
|
||||
$driver = DB::connection($connectionName)->getDriverName();
|
||||
}
|
||||
|
||||
if ($driver === 'oracle') {
|
||||
return static::schemaName() . '.' . static::name();
|
||||
}
|
||||
|
||||
return static::name();
|
||||
}
|
||||
}
|
||||
|
|
@ -125,11 +125,34 @@ final class Migrator
|
|||
VisuelExportGenfiView::class,
|
||||
];
|
||||
|
||||
public function __construct(private readonly string $connection) {}
|
||||
public function __construct(private readonly string $connection)
|
||||
{
|
||||
}
|
||||
|
||||
public function up(): void
|
||||
{
|
||||
$this->down();
|
||||
$conn = DB::connection($this->connection);
|
||||
|
||||
/** @var list<string> */
|
||||
$schemas = [];
|
||||
|
||||
foreach (self::DEFINITIONS as $definition) {
|
||||
$schemas[$definition::schemaName()] = $definition::schemaName();
|
||||
}
|
||||
|
||||
if ($conn->getDriverName() === 'oracle') {
|
||||
foreach ($schemas as $schemaUser) {
|
||||
try {
|
||||
$conn->statement("CREATE USER {$schemaUser} IDENTIFIED BY {$schemaUser} DEFAULT TABLESPACE USERS QUOTA UNLIMITED ON USERS");
|
||||
} catch (\Throwable $e) {
|
||||
unset($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$this->down();
|
||||
}
|
||||
|
||||
$schema = Schema::connection($this->connection);
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ declare(strict_types=1);
|
|||
namespace Database\ArcadiaReplicate;
|
||||
|
||||
use Illuminate\Database\Schema\Builder;
|
||||
use Illuminate\Database\Connection;
|
||||
|
||||
interface TableOrView
|
||||
{
|
||||
|
|
@ -28,6 +29,11 @@ interface TableOrView
|
|||
*/
|
||||
public static function description(): string;
|
||||
|
||||
/**
|
||||
* Nom complet qualifié de la table (ex: 'REFP.INCO' sous Oracle, 'INCO' sous SQLite/MySQL).
|
||||
*/
|
||||
public static function table(?Connection $connection = null): string;
|
||||
|
||||
/**
|
||||
* Création de la structure miroir (colonnes, clés, types et commentaires).
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Database\ArcadiaReplicate\Tables\Metap;
|
||||
|
||||
use Database\ArcadiaReplicate\IdentifiesTableOrView;
|
||||
use Database\ArcadiaReplicate\TableOrView;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Schema\Builder;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class MetaUtilTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'METAP';
|
||||
|
|
@ -38,10 +41,10 @@ final class MetaUtilTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->string('COD_UTIL', 36)->primary()->comment('Oracle: VARCHAR2(0, 0) [PK]');
|
||||
$table->text('LIB_UTIL')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->bigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
|
|
@ -74,6 +77,6 @@ final class MetaUtilTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class AdditifTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class AdditifTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->string('COD_EUROPEEN', 40)->primary()->comment('Oracle: VARCHAR2(0, 0) [PK]');
|
||||
$table->text('MOLECULE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('CARAC_GEN')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
|
|
@ -59,6 +62,6 @@ final class AdditifTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class ArtRayonTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class ArtRayonTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->smallInteger('COD_RAYON')->primary()->comment('Oracle: NUMBER(3, 0) [PK]');
|
||||
$table->text('LIB_RAYON')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->date('DAT_CRE')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
|
|
@ -52,6 +55,6 @@ final class ArtRayonTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class ArticleAssoProduitsTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class ArticleAssoProduitsTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->unsignedBigInteger('ID')->primary()->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->smallInteger('CODE_SITE')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->unsignedBigInteger('NO_ART')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
|
|
@ -56,6 +59,6 @@ final class ArticleAssoProduitsTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class ArticleRefTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class ArticleRefTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->bigInteger('NO_ART')->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$table->string('LIB_CCIAL', 140)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->smallInteger('NO_SORTE')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
|
|
@ -457,6 +460,6 @@ final class ArticleRefTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class AssoCommunesCpTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class AssoCommunesCpTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->string('NUM_COMMUNES', 20)->comment('Oracle: VARCHAR2(0, 0) [PK]');
|
||||
$table->string('CP', 191)->comment('Oracle: VARCHAR2(0, 0) [PK]');
|
||||
$table->unsignedBigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
|
|
@ -51,6 +54,6 @@ final class AssoCommunesCpTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class AssoIncoZoneVersioCcialTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class AssoIncoZoneVersioCcialTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), 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)');
|
||||
|
|
@ -53,6 +56,6 @@ final class AssoIncoZoneVersioCcialTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class AssoIncoZoneVersioMktTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class AssoIncoZoneVersioMktTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), 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)');
|
||||
|
|
@ -53,6 +56,6 @@ final class AssoIncoZoneVersioMktTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class AssoIncoZoneVersioQualTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class AssoIncoZoneVersioQualTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), 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)');
|
||||
|
|
@ -53,6 +56,6 @@ final class AssoIncoZoneVersioQualTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class CalibreOeufsTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class CalibreOeufsTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->smallInteger('CODE_CALIBRE')->primary()->comment('Oracle: NUMBER(3, 0) [PK]');
|
||||
$table->string('LIBELLE_CALIBRE', 120)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(6, 0)');
|
||||
|
|
@ -50,6 +53,6 @@ final class CalibreOeufsTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class FamRgptTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class FamRgptTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->bigInteger('COD_FAMRGPT')->primary()->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$table->text('LIB_FAMRGPT')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->bigInteger('COD_FAMANA')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
|
|
@ -55,6 +58,6 @@ final class FamRgptTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class FamVenteTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class FamVenteTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->bigInteger('COD_FAMVTE')->primary()->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$table->text('LIB_FAMVTE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->bigInteger('COD_FAMGEST')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
|
|
@ -107,6 +110,6 @@ final class FamVenteTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class GroupementQualTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class GroupementQualTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$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('ADRESSE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
|
|
@ -55,6 +58,6 @@ final class GroupementQualTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class IncoAllegationsTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class IncoAllegationsTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->unsignedBigInteger('CODE')->primary()->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->text('LIBELLE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
|
|
@ -50,6 +53,6 @@ final class IncoAllegationsTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class IncoAllergeneTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class IncoAllergeneTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->unsignedBigInteger('ID')->primary()->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->text('LIB')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
|
|
@ -50,6 +53,6 @@ final class IncoAllergeneTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class IncoAssoAllergeneTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class IncoAssoAllergeneTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->unsignedBigInteger('ID')->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->bigInteger('COD_SITE_GRP')->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$table->text('LST_ALLERGENE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
|
|
@ -52,6 +55,6 @@ final class IncoAssoAllergeneTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class IncoAssoTraceTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class IncoAssoTraceTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->unsignedBigInteger('ID')->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->bigInteger('COD_SITE_GRP')->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$table->text('TRACES_RCT')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
|
|
@ -52,6 +55,6 @@ final class IncoAssoTraceTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class IncoBriqueGpcTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class IncoBriqueGpcTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->string('CODE_BRIQUE', 32)->primary()->comment('Oracle: VARCHAR2(0, 0) [PK]');
|
||||
$table->text('LIB_BRIQUE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->unsignedBigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
|
|
@ -52,6 +55,6 @@ final class IncoBriqueGpcTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class IncoCompoTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class IncoCompoTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->unsignedBigInteger('ID')->primary()->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->unsignedBigInteger('ID_INCO')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->string('NUMERO', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
|
|
@ -229,6 +232,6 @@ final class IncoCompoTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class IncoDoaTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class IncoDoaTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->unsignedBigInteger('CLE_SEQ')->primary()->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->unsignedBigInteger('NO_ART')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->unsignedBigInteger('ORI_BIO')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
|
|
@ -56,6 +59,6 @@ final class IncoDoaTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class IncoInterprofessionTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class IncoInterprofessionTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->unsignedBigInteger('CODE')->primary()->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->text('LIBELLE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
|
|
@ -53,6 +56,6 @@ final class IncoInterprofessionTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class IncoNeaTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class IncoNeaTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->unsignedBigInteger('CLE_SEQ')->primary()->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->unsignedBigInteger('NO_ART')->nullable()->comment('Oracle: NUMBER(15, 0)');
|
||||
$table->string('NE', 12)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
|
|
@ -55,6 +58,6 @@ final class IncoNeaTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class IncoOrigininfoTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class IncoOrigininfoTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->date('DAT_CRE')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->date('DAT_MAJ')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
|
|
@ -54,6 +57,6 @@ final class IncoOrigininfoTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class IncoSitProdTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class IncoSitProdTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->integer('NO_ART')->comment('Oracle: NUMBER(9, 0) [PK]');
|
||||
$table->unsignedBigInteger('COD_SITE_GRP')->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
|
|
@ -52,6 +55,6 @@ final class IncoSitProdTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class IncoSuiviEnvoiTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class IncoSuiviEnvoiTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$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)');
|
||||
|
|
@ -58,6 +61,6 @@ final class IncoSuiviEnvoiTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class IncoTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class IncoTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->date('DAT_CRE')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->date('DAT_MAJ')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->bigInteger('NO_ART')->primary()->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
|
|
@ -219,6 +222,6 @@ final class IncoTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class IncoVersionTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class IncoVersionTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->date('DAT_CRE')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->date('DAT_MAJ')->nullable()->comment('Oracle: DATE(0, 0)');
|
||||
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
|
|
@ -55,6 +58,6 @@ final class IncoVersionTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class InseeCommunesTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class InseeCommunesTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->smallInteger('CODE_CDC')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
$table->boolean('CHEF_LIEU')->nullable()->comment('Oracle: NUMBER(1, 0)');
|
||||
$table->smallInteger('CODE_REGION')->nullable()->comment('Oracle: NUMBER(3, 0)');
|
||||
|
|
@ -63,6 +66,6 @@ final class InseeCommunesTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class MarqueTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class MarqueTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->bigInteger('COD_MARQ')->primary()->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$table->text('LIB_MARQ')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->bigInteger('COD_RGPT_MARQ')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
|
|
@ -75,6 +78,6 @@ final class MarqueTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class MediaAssoArticleTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class MediaAssoArticleTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->unsignedBigInteger('CODE_VISUEL')->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->unsignedBigInteger('NO_ART')->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->integer('UVERSION')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
|
|
@ -54,6 +57,6 @@ final class MediaAssoArticleTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class MutTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class MutTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->unsignedBigInteger('ID_MUT')->primary()->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->text('LIBELLE_MUT')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('VARIANTE_NOM')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
|
|
@ -55,6 +58,6 @@ final class MutTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class NdpTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class NdpTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->string('COD_NDP', 100)->primary()->comment('Oracle: VARCHAR2(0, 0) [PK]');
|
||||
$table->text('LIB_NDP')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->bigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
|
|
@ -57,6 +60,6 @@ final class NdpTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class OrgCertifTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class OrgCertifTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$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('ADRESSE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
|
|
@ -55,6 +58,6 @@ final class OrgCertifTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class PaletteIncoTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class PaletteIncoTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), 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)');
|
||||
|
|
@ -54,6 +57,6 @@ final class PaletteIncoTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class RuPersonneSirhTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class RuPersonneSirhTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->string('MATRICULE_FIC', 60)->primary()->comment('Oracle: VARCHAR2(0, 0) [PK]');
|
||||
$table->string('COD_PERSONNE', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->smallInteger('COD_SOC_GRP')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
|
|
@ -83,6 +86,6 @@ final class RuPersonneSirhTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class ServiceConsoIncoTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class ServiceConsoIncoTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$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)');
|
||||
|
|
@ -60,6 +63,6 @@ final class ServiceConsoIncoTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class SiteProdGrpTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class SiteProdGrpTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->bigInteger('COD_SITE_GRP')->primary()->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$table->text('NOM_SITE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->bigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
|
|
@ -122,6 +125,6 @@ final class SiteProdGrpTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class SocieteInvTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class SocieteInvTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->bigInteger('ID_SOCIETE')->primary()->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$table->bigInteger('ID_POLE')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->text('NOM_SOCIETE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
|
|
@ -116,6 +119,6 @@ final class SocieteInvTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class SousFamTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class SousFamTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->bigInteger('COD_SOUSFAM')->primary()->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$table->text('LIB_SOUSFAM')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->integer('NO_ORDRE')->nullable()->comment('Oracle: NUMBER(5, 0)');
|
||||
|
|
@ -55,6 +58,6 @@ final class SousFamTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class TypEmbTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class TypEmbTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->smallInteger('CODE')->primary()->comment('Oracle: NUMBER(3, 0) [PK]');
|
||||
$table->text('LIBELLE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->text('COMMENTAIRE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
|
|
@ -57,6 +60,6 @@ final class TypEmbTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class TypeConditTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class TypeConditTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->bigInteger('COD_CONDIT')->primary()->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$table->text('LIB_CONDIT')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->bigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
|
|
@ -52,6 +55,6 @@ final class TypeConditTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class TypeConservationTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class TypeConservationTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->bigInteger('COD_CONSERVATION')->primary()->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$table->text('LIB_CONSERVATION')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->smallInteger('FAM_CONSERVATION')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
|
|
@ -57,6 +60,6 @@ final class TypeConservationTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ 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;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class UtilisableTable implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class UtilisableTable implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->bigInteger('COD_UTILISABLE')->primary()->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$table->text('LIB_UTILISABLE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->bigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
|
|
@ -51,6 +54,6 @@ final class UtilisableTable implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Database\ArcadiaReplicate\Views\Gcp;
|
||||
|
||||
use Database\ArcadiaReplicate\IdentifiesTableOrView;
|
||||
use Database\ArcadiaReplicate\TableOrView;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Schema\Builder;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class DunIncoInfView implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'GCP';
|
||||
|
|
@ -38,10 +41,10 @@ final class DunIncoInfView implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->bigInteger('NO_ART')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('COD_PCB')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('COD_SOCIETE')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
|
|
@ -74,6 +77,6 @@ final class DunIncoInfView implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Database\ArcadiaReplicate\Views\Gcp;
|
||||
|
||||
use Database\ArcadiaReplicate\IdentifiesTableOrView;
|
||||
use Database\ArcadiaReplicate\TableOrView;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Schema\Builder;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class IncoLangView implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'GCP';
|
||||
|
|
@ -38,10 +41,10 @@ final class IncoLangView implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->bigInteger('NO_ART')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('COD_LANG')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('IS_TRAD')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
|
|
@ -52,6 +55,6 @@ final class IncoLangView implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Database\ArcadiaReplicate\Views\Gcp;
|
||||
|
||||
use Database\ArcadiaReplicate\IdentifiesTableOrView;
|
||||
use Database\ArcadiaReplicate\TableOrView;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Schema\Builder;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class VIncoArtSiteView implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'GCP';
|
||||
|
|
@ -38,10 +41,10 @@ final class VIncoArtSiteView implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->unsignedBigInteger('ID_SOCIETE')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->unsignedBigInteger('NO_ART')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->smallInteger('NIVEAU')->nullable()->comment('Oracle: NUMBER(2, 0)');
|
||||
|
|
@ -55,6 +58,6 @@ final class VIncoArtSiteView implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Database\ArcadiaReplicate\Views\Refp;
|
||||
|
||||
use Database\ArcadiaReplicate\IdentifiesTableOrView;
|
||||
use Database\ArcadiaReplicate\TableOrView;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Schema\Builder;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class ArticleRefGencodView implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class ArticleRefGencodView implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->bigInteger('NO_ART')->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$table->string('LIB_CCIAL', 140)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->string('GENCOD_POIDS_PRIV', 52)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
|
|
@ -56,6 +59,6 @@ final class ArticleRefGencodView implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Database\ArcadiaReplicate\Views\Refp;
|
||||
|
||||
use Database\ArcadiaReplicate\IdentifiesTableOrView;
|
||||
use Database\ArcadiaReplicate\TableOrView;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Schema\Builder;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class DunIncoNosocView implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class DunIncoNosocView implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$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)');
|
||||
|
|
@ -85,6 +88,6 @@ final class DunIncoNosocView implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Database\ArcadiaReplicate\Views\Refp;
|
||||
|
||||
use Database\ArcadiaReplicate\IdentifiesTableOrView;
|
||||
use Database\ArcadiaReplicate\TableOrView;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Schema\Builder;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class DunIncoView implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class DunIncoView implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$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)');
|
||||
|
|
@ -83,6 +86,6 @@ final class DunIncoView implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Database\ArcadiaReplicate\Views\Refp;
|
||||
|
||||
use Database\ArcadiaReplicate\IdentifiesTableOrView;
|
||||
use Database\ArcadiaReplicate\TableOrView;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Schema\Builder;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class EpurerFamVenteView implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class EpurerFamVenteView implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->bigInteger('COD_FAMVTE')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->text('LIB_FAMVTE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->bigInteger('COD_FAMGEST')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
|
|
@ -107,6 +110,6 @@ final class EpurerFamVenteView implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Database\ArcadiaReplicate\Views\Refp;
|
||||
|
||||
use Database\ArcadiaReplicate\IdentifiesTableOrView;
|
||||
use Database\ArcadiaReplicate\TableOrView;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Schema\Builder;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class IncoArticleView implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class IncoArticleView implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->bigInteger('NO_ART')->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$table->string('LIB_CCIAL', 140)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->bigInteger('COD_SOC_IA')->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
|
|
@ -83,6 +86,6 @@ final class IncoArticleView implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Database\ArcadiaReplicate\Views\Refp;
|
||||
|
||||
use Database\ArcadiaReplicate\IdentifiesTableOrView;
|
||||
use Database\ArcadiaReplicate\TableOrView;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Schema\Builder;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class IncoCompoNutriscoreView implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class IncoCompoNutriscoreView implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->bigInteger('ID_INCO')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->string('NUMERO', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
$table->bigInteger('SCORE_NUTRI')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
|
|
@ -55,6 +58,6 @@ final class IncoCompoNutriscoreView implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Database\ArcadiaReplicate\Views\Refp;
|
||||
|
||||
use Database\ArcadiaReplicate\IdentifiesTableOrView;
|
||||
use Database\ArcadiaReplicate\TableOrView;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Schema\Builder;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class IncoSocRefIncoView implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class IncoSocRefIncoView implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->bigInteger('ID_INCO')->primary()->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$table->bigInteger('COD_SOC_FACT')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
|
|
@ -50,6 +53,6 @@ final class IncoSocRefIncoView implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Database\ArcadiaReplicate\Views\Refp;
|
||||
|
||||
use Database\ArcadiaReplicate\IdentifiesTableOrView;
|
||||
use Database\ArcadiaReplicate\TableOrView;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Schema\Builder;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class SitProdIncoView implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class SitProdIncoView implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->unsignedBigInteger('NO_ART')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
$table->bigInteger('COD_SITE_GRP')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->text('NOM_SITE')->nullable()->comment('Oracle: VARCHAR2(0, 0)');
|
||||
|
|
@ -59,6 +62,6 @@ final class SitProdIncoView implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Database\ArcadiaReplicate\Views\Refp;
|
||||
|
||||
use Database\ArcadiaReplicate\IdentifiesTableOrView;
|
||||
use Database\ArcadiaReplicate\TableOrView;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Schema\Builder;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class SocDlcIncoView implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class SocDlcIncoView implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->bigInteger('NO_ART')->nullable()->comment('Oracle: NUMBER(0, 0)');
|
||||
$table->bigInteger('ID_SOCIETE')->primary()->comment('Oracle: NUMBER(0, 0) [PK]');
|
||||
$table->smallInteger('DLC_CCIAL')->nullable()->comment('Oracle: NUMBER(4, 0)');
|
||||
|
|
@ -53,6 +56,6 @@ final class SocDlcIncoView implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Database\ArcadiaReplicate\Views\Refp;
|
||||
|
||||
use Database\ArcadiaReplicate\IdentifiesTableOrView;
|
||||
use Database\ArcadiaReplicate\TableOrView;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Schema\Builder;
|
||||
|
|
@ -15,6 +16,8 @@ use Illuminate\Database\Schema\Builder;
|
|||
*/
|
||||
final class VisuelExportGenfiView implements TableOrView
|
||||
{
|
||||
use IdentifiesTableOrView;
|
||||
|
||||
public static function schemaName(): string
|
||||
{
|
||||
return 'REFP';
|
||||
|
|
@ -38,10 +41,10 @@ final class VisuelExportGenfiView implements TableOrView
|
|||
public static function up(Builder $schema): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
|
||||
$schema->create(self::name(), function (Blueprint $table): void {
|
||||
$schema->create(self::table($schema->getConnection()), function (Blueprint $table): void {
|
||||
$table->unsignedBigInteger('NO_ART')->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->unsignedBigInteger('CODE_VISUEL')->comment('Oracle: NUMBER(10, 0) [PK]');
|
||||
$table->unsignedBigInteger('CODE_TYPEVUE')->nullable()->comment('Oracle: NUMBER(10, 0)');
|
||||
|
|
@ -56,6 +59,6 @@ final class VisuelExportGenfiView implements TableOrView
|
|||
|
||||
public static function down(Builder $schema): void
|
||||
{
|
||||
$schema->dropIfExists(self::name());
|
||||
$schema->dropIfExists(self::table($schema->getConnection()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@ services:
|
|||
- "1521:1521"
|
||||
environment:
|
||||
ORACLE_PASSWORD: ":Oracle.Docker2026"
|
||||
ORACLE_DATABASE: "XEPDB1"
|
||||
volumes:
|
||||
- oracle_data:/opt/oracle/oradata
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Infra\Adapters\Directories;
|
||||
|
||||
use Database\ArcadiaReplicate\Tables\Refp\RuPersonneSirhTable;
|
||||
use Domain\Models\Entities\Employee;
|
||||
use Domain\Models\ValueObjects\Employees\ArcadiaEmployeeId;
|
||||
use Domain\Models\ValueObjects\Employees\EmployeeFilter;
|
||||
|
|
@ -30,7 +31,7 @@ final class ArcadiaEmployeeDirectory implements EmployeeDirectory
|
|||
EmployeeSorter $sorter,
|
||||
?EmployeeFilter $filter = null,
|
||||
): Paginated {
|
||||
$query = $this->connection->table('RU_PERSONNE_SIRH');
|
||||
$query = $this->connection->table(RuPersonneSirhTable::table($this->connection));
|
||||
|
||||
if ($filter !== null) {
|
||||
if ($filter->establishment !== null) {
|
||||
|
|
@ -79,7 +80,7 @@ final class ArcadiaEmployeeDirectory implements EmployeeDirectory
|
|||
public function find(ArcadiaEmployeeId $id): ?Employee
|
||||
{
|
||||
$row = $this->connection
|
||||
->table('RU_PERSONNE_SIRH')
|
||||
->table(RuPersonneSirhTable::table($this->connection))
|
||||
->where('MATRICULE_FIC', $id->value)
|
||||
->first();
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Infra\Adapters\Directories;
|
||||
|
||||
use Database\ArcadiaReplicate\Tables\Refp\IncoCompoTable;
|
||||
use Domain\Models\Entities\Inco\Composition\IncoComposition;
|
||||
use Domain\Models\ValueObjects\Inco\Composition\IncoCompositionId;
|
||||
use Domain\Models\ValueObjects\Inco\IncoId;
|
||||
|
|
@ -22,7 +23,7 @@ final class ArcadiaIncoCompositionDirectory implements IncoCompositionDirectory
|
|||
public function find(IncoCompositionId $id): ?IncoComposition
|
||||
{
|
||||
$row = $this->connection
|
||||
->table('INCO_COMPO')
|
||||
->table(IncoCompoTable::table($this->connection))
|
||||
->where('ID', $id->value)
|
||||
->first();
|
||||
|
||||
|
|
@ -37,7 +38,7 @@ final class ArcadiaIncoCompositionDirectory implements IncoCompositionDirectory
|
|||
public function findByIncoId(IncoId $incoId): ?IncoComposition
|
||||
{
|
||||
$row = $this->connection
|
||||
->table('INCO_COMPO')
|
||||
->table(IncoCompoTable::table($this->connection))
|
||||
->where('ID_INCO', $incoId->value)
|
||||
->first();
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ declare(strict_types=1);
|
|||
|
||||
namespace Infra\Adapters\Directories;
|
||||
|
||||
use Database\ArcadiaReplicate\Tables\Refp\FamVenteTable;
|
||||
use Database\ArcadiaReplicate\Tables\Refp\IncoTable;
|
||||
use Domain\Models\Entities\Inco\IncoSheet;
|
||||
use Domain\Models\ValueObjects\Brand\BrandCode;
|
||||
use Domain\Models\ValueObjects\Inco\IncoId;
|
||||
|
|
@ -34,9 +36,12 @@ final class ArcadiaIncoSheetDirectory implements IncoSheetDirectory
|
|||
IncoSheetSorter $sorter,
|
||||
?IncoSheetFilter $filter = null
|
||||
): Paginated {
|
||||
$incoTable = IncoTable::table($this->connection);
|
||||
$famVenteTable = FamVenteTable::table($this->connection);
|
||||
|
||||
$query = $this->connection
|
||||
->table('INCO')
|
||||
->leftJoin('FAM_VENTE', 'INCO.FAMILLE_VTE', '=', 'FAM_VENTE.COD_FAMVTE')
|
||||
->table($incoTable)
|
||||
->leftJoin($famVenteTable, 'INCO.FAMILLE_VTE', '=', 'FAM_VENTE.COD_FAMVTE')
|
||||
->select(['INCO.*', 'FAM_VENTE.LIB_FAMVTE as FAMILLE_VTE_LIBELLE']);
|
||||
|
||||
if ($filter !== null) {
|
||||
|
|
@ -80,9 +85,12 @@ final class ArcadiaIncoSheetDirectory implements IncoSheetDirectory
|
|||
Pagination $pagination,
|
||||
BrandCode ...$brands
|
||||
): Paginated {
|
||||
$incoTable = IncoTable::table($this->connection);
|
||||
$famVenteTable = FamVenteTable::table($this->connection);
|
||||
|
||||
$dbQuery = $this->connection
|
||||
->table('INCO')
|
||||
->leftJoin('FAM_VENTE', 'INCO.FAMILLE_VTE', '=', 'FAM_VENTE.COD_FAMVTE')
|
||||
->table($incoTable)
|
||||
->leftJoin($famVenteTable, 'INCO.FAMILLE_VTE', '=', 'FAM_VENTE.COD_FAMVTE')
|
||||
->select(['INCO.*', 'FAM_VENTE.LIB_FAMVTE as FAMILLE_VTE_LIBELLE']);
|
||||
|
||||
$dbQuery->where('INCO.NO_ART', 'LIKE', $query->value);
|
||||
|
|
@ -112,9 +120,12 @@ final class ArcadiaIncoSheetDirectory implements IncoSheetDirectory
|
|||
#[\Override]
|
||||
public function find(IncoId $id): ?IncoSheet
|
||||
{
|
||||
$incoTable = IncoTable::table($this->connection);
|
||||
$famVenteTable = FamVenteTable::table($this->connection);
|
||||
|
||||
$row = $this->connection
|
||||
->table('INCO')
|
||||
->leftJoin('FAM_VENTE', 'INCO.FAMILLE_VTE', '=', 'FAM_VENTE.COD_FAMVTE')
|
||||
->table($incoTable)
|
||||
->leftJoin($famVenteTable, 'INCO.FAMILLE_VTE', '=', 'FAM_VENTE.COD_FAMVTE')
|
||||
->select(['INCO.*', 'FAM_VENTE.LIB_FAMVTE as FAMILLE_VTE_LIBELLE'])
|
||||
->where('INCO.NO_ART', $id->value)
|
||||
->first();
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Infra\Adapters\Directories;
|
||||
|
||||
use Database\ArcadiaReplicate\Tables\Refp\IncoTable;
|
||||
use Domain\Models\Entities\Inco\IncoShortSheet;
|
||||
use Domain\Models\ValueObjects\Brand\BrandCode;
|
||||
use Domain\Models\ValueObjects\Inco\IncoId;
|
||||
|
|
@ -34,7 +35,7 @@ final class ArcadiaIncoShortSheetDirectory implements IncoShortSheetDirectory
|
|||
?IncoSheetFilter $filter = null
|
||||
): Paginated {
|
||||
$query = $this->connection
|
||||
->table('INCO')
|
||||
->table(IncoTable::table($this->connection))
|
||||
->select(IncoShortMapper::SELECT_COLUMNS);
|
||||
|
||||
if ($filter !== null) {
|
||||
|
|
@ -78,7 +79,7 @@ final class ArcadiaIncoShortSheetDirectory implements IncoShortSheetDirectory
|
|||
BrandCode ...$brands
|
||||
): Paginated {
|
||||
$dbQuery = $this->connection
|
||||
->table('INCO')
|
||||
->table(IncoTable::table($this->connection))
|
||||
->select(IncoShortMapper::SELECT_COLUMNS);
|
||||
|
||||
$dbQuery->where('NO_ART', 'LIKE', $query->value);
|
||||
|
|
@ -108,7 +109,7 @@ final class ArcadiaIncoShortSheetDirectory implements IncoShortSheetDirectory
|
|||
public function find(IncoId $id): ?IncoShortSheet
|
||||
{
|
||||
$row = $this->connection
|
||||
->table('INCO')
|
||||
->table(IncoTable::table($this->connection))
|
||||
->select(IncoShortMapper::SELECT_COLUMNS)
|
||||
->where('NO_ART', $id->value)
|
||||
->first();
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Infra\Adapters\Directories;
|
||||
|
||||
use Database\ArcadiaReplicate\Tables\Refp\MarqueTable;
|
||||
use Domain\Models\ValueObjects\Brand\ArcadiaBrand;
|
||||
use Domain\Models\ValueObjects\Brand\ArcadiaId;
|
||||
use Domain\Ports\Directories\ArcadiaBrandDirectory as ArcadiaBrandDirectoryPort;
|
||||
|
|
@ -24,7 +25,7 @@ final class ArcadiaMarqueBrandDirectory implements ArcadiaBrandDirectoryPort
|
|||
public function findAll(): array
|
||||
{
|
||||
$rows = $this->connection
|
||||
->table('MARQUE')
|
||||
->table(MarqueTable::table($this->connection))
|
||||
->get();
|
||||
|
||||
$items = [];
|
||||
|
|
@ -46,7 +47,7 @@ final class ArcadiaMarqueBrandDirectory implements ArcadiaBrandDirectoryPort
|
|||
}
|
||||
|
||||
$row = $this->connection
|
||||
->table('MARQUE')
|
||||
->table(MarqueTable::table($this->connection))
|
||||
->where('COD_MARQ', $id->value)
|
||||
->first();
|
||||
|
||||
|
|
|
|||
|
|
@ -64,9 +64,10 @@ final readonly class LaravelSystemHealthChecker implements HealthChecker
|
|||
$tableName = $definition::name();
|
||||
$schemaName = $definition::schemaName();
|
||||
$target = "{$schemaName}.{$tableName}";
|
||||
$queryTable = $definition::table($connection);
|
||||
|
||||
try {
|
||||
$connection->table($tableName)->limit(0)->get();
|
||||
$connection->table($queryTable)->limit(0)->get();
|
||||
$checks[] = new DirectoryConformityCheck(
|
||||
name: strtolower($tableName),
|
||||
status: ComponentStatus::UP,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue