environment('local', 'testing')) { $schema->dropIfExists(self::table($schema->getConnection())); } $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)'); $table->date('DAT_MAJ')->nullable()->comment('Oracle: DATE(0, 0)'); $table->smallInteger('UVERSION')->nullable()->comment('Oracle: NUMBER(3, 0)'); }); } public static function down(Builder $schema): void { $schema->dropIfExists(self::table($schema->getConnection())); } }