Skip to content

Commit

Permalink
Merge branch 'master' of github.com:freescout-helpdesk/freescout into…
Browse files Browse the repository at this point in the history
… dist
  • Loading branch information
freescout-helpdesk committed Dec 13, 2018
2 parents 53fc596 + 021b118 commit 574d6bb
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -14,7 +14,9 @@ class AddStatusColumnToUsersTable extends Migration
public function up()
{
Schema::table('users', function (Blueprint $table) {
$table->unsignedTinyInteger('status')->after('type')->default(\App\User::STATUS_ACTIVE)->index();
// 1 - \App\User::STATUS_ACTIVE
// Using digit instead of constant to avoid problems duing updating process.
$table->unsignedTinyInteger('status')->after('type')->default(1)->index();
});
}

Expand Down

0 comments on commit 574d6bb

Please sign in to comment.