From 150b6fe5b6adf863886c985662f63a9e8a37b124 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 25 Jul 2015 07:03:42 +0200 Subject: [PATCH] Add block code [skip ci] --- app/User.php | 2 ++ .../migrations/2015_07_17_190438_changes_for_v3410.php | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/User.php b/app/User.php index 3e31b0ae36..236a3e85e1 100644 --- a/app/User.php +++ b/app/User.php @@ -36,6 +36,8 @@ use Zizaco\Entrust\Traits\EntrustUserTrait; * @property boolean $blocked * @property-read \Illuminate\Database\Eloquent\Collection|\FireflyIII\Models\Attachment[] $attachments * @method static \Illuminate\Database\Query\Builder|\FireflyIII\User whereBlocked($value) + * @property string $blocked_code + * @method static \Illuminate\Database\Query\Builder|\FireflyIII\User whereBlockedCode($value) */ class User extends Model implements AuthenticatableContract, CanResetPasswordContract { diff --git a/database/migrations/2015_07_17_190438_changes_for_v3410.php b/database/migrations/2015_07_17_190438_changes_for_v3410.php index 3892d3e881..33aafe2a19 100644 --- a/database/migrations/2015_07_17_190438_changes_for_v3410.php +++ b/database/migrations/2015_07_17_190438_changes_for_v3410.php @@ -34,8 +34,14 @@ class ChangesForV3410 extends Migration } ); - } + // add "blocked_code" to users: + Schema::table( + 'users', function (Blueprint $table) { + $table->string('blocked_code', 25)->nullable(); + } + ); + } /**