add 1st place
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
/**
|
||||
* Class CreateDepartmentsTable.
|
||||
*/
|
||||
class CreateDepartmentsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('departments', function(Blueprint $table) {
|
||||
$table->string('id', 7)->primary();
|
||||
$table->string('name');
|
||||
$table->string('tel');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('departments');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user