Skip to content

Commit

Permalink
use nullable timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
epalmans committed Aug 5, 2022
1 parent ba52260 commit 41b18f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions migrations/0000_00_00_000000_create_site_views_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@ public function up()

$table->string('request_method', 16);
$table->string('url', 2000);

$table->string('request_path');
$table->string('route')->nullable()->index();

$table->string('http_referer', 2000)->nullable();
$table->string('http_user_agent')->nullable();
$table->string('http_accept_language', 64)->nullable();
$table->string('locale', 8)->index();
$table->string('ip')->nullable()->index();

$table->timestamp('requested_at');
$table->timestamp('requested_at')->nullable();
$table->integer('app_time');
$table->bigInteger('memory');

$table->timestamp('created_at');
$table->timestamp('created_at')->nullable();
});
}

Expand Down
8 changes: 4 additions & 4 deletions tests/TestBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,21 @@ protected function resetDatabase()

$table->string('request_method', 16);
$table->string('url', 2000);

$table->string('request_path');
$table->string('route')->nullable()->index();

$table->string('http_referer', 2000)->nullable();
$table->string('http_user_agent')->nullable();
$table->string('http_accept_language', 64)->nullable();
$table->string('locale', 8)->index();
$table->string('ip')->nullable()->index();

$table->timestamp('requested_at');
$table->timestamp('requested_at')->nullable();
$table->integer('app_time');
$table->bigInteger('memory');

$table->timestamp('created_at');
$table->timestamp('created_at')->nullable();
});
}

Expand Down

0 comments on commit 41b18f9

Please sign in to comment.