This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
memberdb/database/pending/2015_11_30_232041_bigint_user_keys.php
2017-08-03 16:35:36 +10:00

32 lines
641 B
PHP

<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class BigintUserKeys extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('role_user', function (Blueprint $table) {
$table->bigInteger("user_id")->unsigned()->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('role_user', function (Blueprint $table) {
$table->integer("user_id")->unsigned()->change();
});
}
}