Commit 097c59ca authored by Mohammad Javad Ghasemy's avatar Mohammad Javad Ghasemy 🦈

my best try to migration

parent 2d2f4ca1
......@@ -15,8 +15,7 @@ class CreateBookTable extends Migration
{
Schema::create('book', function (Blueprint $table) {
$table->id();
$table->string('name', 300);
$table->string('shabok', 300);
$table->string('isbn', 100)->unique();
$table->timestamps();
});
}
......
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateFuckingTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('fucking', function (Blueprint $table) {
$table->id();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('fucking');
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment