Page MenuHomePhorge

2019_12_20_130000_create_verification_codes_table.php
No OneTemporary

Size
862 B
Referenced Files
None
Subscribers
None

2019_12_20_130000_create_verification_codes_table.php

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
// phpcs:ignore
class CreateVerificationCodesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('verification_codes', function (Blueprint $table) {
$table->bigInteger('user_id');
$table->string('code', 32);
$table->string('short_code', 16);
$table->string('mode');
$table->timestamp('expires_at');
$table->primary('code');
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('verification_codes');
}
}

File Metadata

Mime Type
text/x-php
Expires
Thu, Apr 9, 1:07 PM (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
536120
Default Alt Text
2019_12_20_130000_create_verification_codes_table.php (862 B)

Event Timeline