unioil-loyalty-app/database/migrations/2018_09_20_055640_password_...

37 lines
857 B
PHP
Executable File

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class PasswordLogs extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('password_logs', function (Blueprint $table) {
$table->increments('pl_id');
$table->integer('admin_id');
$table->text('password');
$table->string('generated_password',64)->nullable();
$table->boolean('is_generated');
$table->timestamp('created_dt');
$table->integer('created_by')->default(0);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('password_logs');
}
}