diff --git a/database/migrations/2016_06_26_225535_create_favourites_table.php b/database/migrations/2016_06_26_225535_create_favourites_table.php index 630103ac..7adadee3 100644 --- a/database/migrations/2016_06_26_225535_create_favourites_table.php +++ b/database/migrations/2016_06_26_225535_create_favourites_table.php @@ -19,7 +19,7 @@ class CreateFavouritesTable extends Migration { $table->integer('track_id')->unsigned()->nullable()->index(); $table->integer('album_id')->unsigned()->nullable()->index(); $table->integer('playlist_id')->unsigned()->nullable()->index(); - $table->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP'))->nullable(); + $table->dateTime('created_at')->default('now()')->nullable(); }); } diff --git a/database/migrations/2016_06_26_225535_create_images_table_2.php b/database/migrations/2016_06_26_225535_create_images_table_2.php index 0f19ccb0..692177e1 100644 --- a/database/migrations/2016_06_26_225535_create_images_table_2.php +++ b/database/migrations/2016_06_26_225535_create_images_table_2.php @@ -23,7 +23,7 @@ class CreateImagesTable2 extends Migration { $table->string('filename', 256); $table->string('mime', 100); $table->string('extension', 32); - $table->integer('size'); + $table->unsignedInteger('size'); $table->string('hash', 32)->index(); $table->unsignedInteger('uploaded_by')->index(); $table->timestamps(); diff --git a/database/migrations/2016_06_26_225535_create_sessions_table.php b/database/migrations/2016_06_26_225535_create_sessions_table.php index f8eff5b7..f341e8d0 100644 --- a/database/migrations/2016_06_26_225535_create_sessions_table.php +++ b/database/migrations/2016_06_26_225535_create_sessions_table.php @@ -15,7 +15,7 @@ class CreateSessionsTable extends Migration { Schema::create('sessions', function(Blueprint $table) { $table->string('id')->unique(); - $table->text('payload', 65535); + $table->text('payload'); $table->integer('last_activity'); }); }