Files
Test-Laravel-File-Upload/database/migrations/2021_12_06_085315_create_offices_table.php
2021-12-06 11:07:06 +02:00

34 lines
653 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateOfficesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('offices', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('photo');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('offices');
}
}