]> BookStack Code Mirror - bookstack/blob - database/migrations/2015_12_09_195748_add_user_avatars.php
New translations editor.php (Vietnamese)
[bookstack] / database / migrations / 2015_12_09_195748_add_user_avatars.php
1 <?php
2
3 use Illuminate\Database\Migrations\Migration;
4 use Illuminate\Database\Schema\Blueprint;
5
6 class AddUserAvatars extends Migration
7 {
8     /**
9      * Run the migrations.
10      *
11      * @return void
12      */
13     public function up()
14     {
15         Schema::table('users', function (Blueprint $table) {
16             $table->integer('image_id')->default(0);
17         });
18     }
19
20     /**
21      * Reverse the migrations.
22      *
23      * @return void
24      */
25     public function down()
26     {
27         Schema::table('users', function (Blueprint $table) {
28             $table->dropColumn('image_id');
29         });
30     }
31 }