laravel-all-module/database/migrations/2024_08_21_143118_create_penerbit_table.php
example@gmail.com e1cd8884ab Test
2024-09-17 06:30:20 +07:00

31 lines
730 B
PHP

<?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('penerbit', function (Blueprint $table) {
$table->string('penerbit_id', 16)->primary();
$table->string('penerbit_nama', 50);
$table->string('penerbit_alamat', 50);
$table->char('penerbit_notelp', 13);
$table->string('penerbit_email', 50);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('penerbit');
}
};