Skip to content

Commit

Permalink
Merge pull request #40 from achmadhadikurnia/main
Browse files Browse the repository at this point in the history
add migraion
  • Loading branch information
kanekesreal authored Jul 19, 2024
2 parents db3c4ce + 98e1d0e commit 4bc3b30
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
}

Expand All @@ -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();
});
}
};
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->text('alamat')->nullable()->change();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('siasn_simpeg_pegawai', function (Blueprint $table) {
$table->string('alamat')->nullable()->change();
});
}
};
1 change: 1 addition & 0 deletions src/SimpegServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down

0 comments on commit 4bc3b30

Please sign in to comment.