diff --git a/database/migrations/2014_07_09_204843_create_session_table.php b/database/migrations/2014_07_09_204843_create_session_table.php index 240f66ba88..66842aa574 100644 --- a/database/migrations/2014_07_09_204843_create_session_table.php +++ b/database/migrations/2014_07_09_204843_create_session_table.php @@ -29,13 +29,14 @@ class CreateSessionTable extends Migration */ public function up() { - Schema::create( - 'sessions', function (Blueprint $table) { + Schema::create('sessions', function ($table) { $table->string('id')->unique(); + $table->integer('user_id')->nullable(); + $table->string('ip_address', 45)->nullable(); + $table->text('user_agent')->nullable(); $table->text('payload'); $table->integer('last_activity'); - } - ); + }); } } diff --git a/database/migrations/2016_02_04_144117_changes_for_v380.php b/database/migrations/2016_02_04_144117_changes_for_v380.php index 6169706fd4..277a1c2942 100644 --- a/database/migrations/2016_02_04_144117_changes_for_v380.php +++ b/database/migrations/2016_02_04_144117_changes_for_v380.php @@ -15,7 +15,8 @@ class ChangesForV380 extends Migration */ public function down() { - // + Schema::drop('export_jobs'); + } /**