Skip to content

Commit

Permalink
Merge pull request #50 from achmadhadikurnia/main
Browse files Browse the repository at this point in the history
feature: add pull data from csv
  • Loading branch information
achmadhadikurnia authored Apr 9, 2024
2 parents e9c5398 + 9bd83a5 commit 4a8c17c
Show file tree
Hide file tree
Showing 37 changed files with 1,269 additions and 2 deletions.
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
"kanekescom/laravel-helperia": "^2.0",
"kanekescom/laravel-siasn-api": "^2.0",
"kanekescom/laravel-siasn-referensi-api": "^2.1",
"kanekescom/siasn-referensi-dataset": "^2024.0@dev",
"league/csv": "^9.15",
"spatie/laravel-fractal": "^6.0",
"spatie/laravel-package-tools": "^1.14.0"
},
Expand Down Expand Up @@ -114,4 +116,4 @@
],
"minimum-stability": "dev",
"prefer-stable": true
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?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::create('siasn_referensi_cltn', function (Blueprint $table) {
$table->unsignedTinyInteger('id')->primary();
$table->string('nama');
$table->timestamps();
$table->softDeletes();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('siasn_referensi_cltn');
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?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::create('siasn_referensi_harga', function (Blueprint $table) {
$table->unsignedSmallInteger('id')->primary();
$table->string('nama');
$table->timestamps();
$table->softDeletes();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('siasn_referensi_harga');
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?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::create('siasn_referensi_jenis_id_dokumen', function (Blueprint $table) {
$table->unsignedTinyInteger('id')->primary();
$table->string('nama');
$table->timestamps();
$table->softDeletes();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('siasn_referensi_jenis_id_dokumen');
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?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::create('siasn_referensi_jenis_kawin', function (Blueprint $table) {
$table->unsignedTinyInteger('id')->primary();
$table->string('nama');
$table->timestamps();
$table->softDeletes();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('siasn_referensi_jenis_kawin');
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?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::create('siasn_referensi_jenis_kepanitiaan', function (Blueprint $table) {
$table->string('id', 1)->primary();
$table->string('nama');
$table->timestamps();
$table->softDeletes();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('siasn_referensi_jenis_kepanitiaan');
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?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::create('siasn_referensi_jenis_kompetensi', function (Blueprint $table) {
$table->unsignedTinyInteger('id')->primary();
$table->string('nama');
$table->timestamps();
$table->softDeletes();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('siasn_referensi_jenis_kompetensi');
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?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::create('siasn_referensi_jenis_kp', function (Blueprint $table) {
$table->unsignedTinyInteger('id')->primary();
$table->string('nama');
$table->timestamps();
$table->softDeletes();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('siasn_referensi_jenis_kp');
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?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::create('siasn_referensi_jenis_kursus', function (Blueprint $table) {
$table->string('id', 42)->primary();
$table->string('cepat_kode', 10);
$table->string('nama');
$table->timestamps();
$table->softDeletes();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('siasn_referensi_jenis_kursus');
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?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::create('siasn_referensi_jenis_pegawai', function (Blueprint $table) {
$table->unsignedTinyInteger('id')->primary();
$table->string('nama');
$table->timestamps();
$table->softDeletes();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('siasn_referensi_jenis_pegawai');
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?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::create('siasn_referensi_jenis_pemberhentian', function (Blueprint $table) {
$table->unsignedTinyInteger('id')->primary();
$table->string('nama');
$table->timestamps();
$table->softDeletes();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('siasn_referensi_jenis_pemberhentian');
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?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::create('siasn_referensi_jenis_pengadaan', function (Blueprint $table) {
$table->string('id', 1)->primary();
$table->string('nama');
$table->timestamps();
$table->softDeletes();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('siasn_referensi_jenis_pengadaan');
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?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::create('siasn_referensi_jenis_pensiun', function (Blueprint $table) {
$table->unsignedTinyInteger('id')->primary();
$table->string('nama');
$table->timestamps();
$table->softDeletes();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('siasn_referensi_jenis_pensiun');
}
};
Loading

0 comments on commit 4a8c17c

Please sign in to comment.