Skip to content

Commit

Permalink
Merge pull request #39 from achmadhadikurnia/main
Browse files Browse the repository at this point in the history
add change_jenis_kawin_id_data_type_on_siasn_simpeg_pegawai_table migration
  • Loading branch information
kanekesreal committed Jul 18, 2024
2 parents f3dc391 + d7b8808 commit db3c4ce
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('siasn_simpeg_pegawai', function (Blueprint $table) {
$table->string('jenis_kawin_id', 1)->change();
});
}

/**
* Reverse the migrations.
*/
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);
});
}
};
1 change: 1 addition & 0 deletions src/SimpegServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public function configurePackage(Package $package): void
'2024_01_02_000027_create_siasn_simpeg_pns_rw_skp22_table',
'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',
])
->runsMigrations()
->hasCommands([
Expand Down

0 comments on commit db3c4ce

Please sign in to comment.