environment('local', 'testing')) { $schema->dropIfExists(self::name()); } $schema->create(self::name(), 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)'); $table->string('CODE_DEPARTEMENT', 16)->comment('Oracle: VARCHAR2(0, 0) [PK]'); $table->string('CODE_COMMUNE', 20)->comment('Oracle: VARCHAR2(0, 0) [PK]'); $table->smallInteger('AR')->nullable()->comment('Oracle: NUMBER(2, 0)'); $table->smallInteger('CT')->nullable()->comment('Oracle: NUMBER(3, 0)'); $table->smallInteger('TNCC')->nullable()->comment('Oracle: NUMBER(2, 0)'); $table->string('ARTMAJ', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)'); $table->text('NCC')->nullable()->comment('Oracle: VARCHAR2(0, 0)'); $table->string('ARTMIN', 40)->nullable()->comment('Oracle: VARCHAR2(0, 0)'); $table->text('NCCENR')->nullable()->comment('Oracle: VARCHAR2(0, 0)'); $table->string('NUM_COMMUNE', 20)->nullable()->comment('Oracle: VARCHAR2(0, 0)'); $table->unsignedBigInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(10, 0)'); $table->string('CANTON_VILLE', 20)->nullable()->comment('Oracle: VARCHAR2(0, 0)'); $table->primary(['CODE_DEPARTEMENT', 'CODE_COMMUNE']); }); } public static function down(Builder $schema): void { $schema->dropIfExists(self::name()); } }