diff --git a/database/migrations/2024_07_18_000002_change_jenis_kawin_id_data_type_on_siasn_simpeg_pegawai_table.php b/database/migrations/2024_07_18_000002_change_jenis_kawin_id_data_type_on_siasn_simpeg_pegawai_table.php index 9eb2656..ff37a7e 100644 --- a/database/migrations/2024_07_18_000002_change_jenis_kawin_id_data_type_on_siasn_simpeg_pegawai_table.php +++ b/database/migrations/2024_07_18_000002_change_jenis_kawin_id_data_type_on_siasn_simpeg_pegawai_table.php @@ -12,7 +12,7 @@ public function up(): void { Schema::table('siasn_simpeg_pegawai', function (Blueprint $table) { - $table->string('jenis_kawin_id', 1)->change(); + $table->string('jenis_kawin_id', 1)->nullable()->change(); }); } @@ -22,7 +22,7 @@ public function up(): void public function down(): void { Schema::table('siasn_simpeg_pegawai', function (Blueprint $table) { - $table->unsignedTinyInteger('jenis_kawin_id')->nullable()->index('1_jenis_kawin_id')->autoIncrement(false); + $table->unsignedTinyInteger('jenis_kawin_id')->nullable()->index('1_jenis_kawin_id')->autoIncrement(false)->change(); }); } }; diff --git a/database/migrations/2024_07_18_000003_change_alamat_data_type_on_siasn_simpeg_pegawai_table.php b/database/migrations/2024_07_18_000003_change_alamat_data_type_on_siasn_simpeg_pegawai_table.php new file mode 100644 index 0000000..8c2327c --- /dev/null +++ b/database/migrations/2024_07_18_000003_change_alamat_data_type_on_siasn_simpeg_pegawai_table.php @@ -0,0 +1,28 @@ +text('alamat')->nullable()->change(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('siasn_simpeg_pegawai', function (Blueprint $table) { + $table->string('alamat')->nullable()->change(); + }); + } +}; diff --git a/src/SimpegServiceProvider.php b/src/SimpegServiceProvider.php index 4163476..41ba164 100644 --- a/src/SimpegServiceProvider.php +++ b/src/SimpegServiceProvider.php @@ -39,6 +39,7 @@ public function configurePackage(Package $package): void '2024_01_02_000028_create_siasn_simpeg_referensi_ref_unor_table', '2024_07_18_000001_add_nama_sekolah_field_on_siasn_simpeg_pegawai_table', '2024_07_18_000002_change_jenis_kawin_id_data_type_on_siasn_simpeg_pegawai_table', + '2024_07_18_000003_change_alamat_data_type_on_siasn_simpeg_pegawai_table', ]) ->runsMigrations() ->hasCommands([