31 lines
730 B
PHP
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');
|
|
}
|
|
};
|