osb/database/migrations/2018_05_20_052944_account_add_remember_token.php

33 lines
639 B
PHP
Raw Normal View History

2017-11-03 05:26:07 +00:00
<?php
use Illuminate\Support\Facades\Schema;
2017-11-03 05:26:07 +00:00
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
2018-05-20 12:53:14 +00:00
class AccountAddRememberToken extends Migration
2017-11-03 05:26:07 +00:00
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
2018-05-20 12:53:14 +00:00
Schema::table('ab_account', function (Blueprint $table) {
$table->rememberToken();
2017-11-03 05:26:07 +00:00
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
2018-05-20 12:53:14 +00:00
Schema::table('ab_account', function (Blueprint $table) {
$table->dropRememberToken();
});
2017-11-03 05:26:07 +00:00
}
}