This repository has been archived on 2024-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
notdepressed/database/migrations/2020_03_06_051421_vk.php

34 lines
711 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class Vk extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('users', function (Blueprint $table) {
$table->string('token_passwordless')->unique()->nullable();
$table->string('token_vk')->unique()->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('users', function (Blueprint $table) {
$table->dropColumn('token_vk');
});
}
}