pingcrm/database/migrations/2020_01_01_000003_create_ac...

33 lines
635 B
PHP
Raw Normal View History

2019-03-18 08:53:00 -03:00
<?php
use Illuminate\Database\Migrations\Migration;
2020-07-29 11:58:25 -03:00
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
2019-03-18 08:53:00 -03:00
class CreateAccountsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
2019-03-18 08:53:00 -03:00
public function up()
{
Schema::create('accounts', function (Blueprint $table) {
$table->increments('id');
$table->string('name', 50);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('accounts');
}
2019-03-18 08:53:00 -03:00
}