mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 21:54:14 -08:00
Fixed weird migration
This commit is contained in:
parent
27c1bc0271
commit
5fd50040d3
|
@ -12,9 +12,11 @@ class AddRememberTokenToUsersTable extends Migration
|
|||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->text('remember_token')->nullable()->default(NULL);
|
||||
});
|
||||
if (!Schema::hasColumn('users', 'remember_token')) {
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->text('remember_token')->nullable()->default(null);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -25,7 +27,7 @@ class AddRememberTokenToUsersTable extends Migration
|
|||
public function down()
|
||||
{
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
//
|
||||
$table->dropColumn('remember_token');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue