14 use Illuminate\Database\Migrations\Migration;
15 use Illuminate\Database\Schema\Builder;
16 use Illuminate\Database\Schema\Blueprint;
17 use Illuminate\Database\Capsule\Manager as Capsule;
24 public function up() {
26 Capsule::schema()->create(
'usage_stats_temporary_records',
function (Blueprint $table) {
27 $table->bigInteger(
'assoc_id');
28 $table->bigInteger(
'assoc_type');
29 $table->bigInteger(
'day');
30 $table->bigInteger(
'entry_time');
31 $table->bigInteger(
'metric')->
default(1);
32 $table->string(
'country_id', 2)->nullable();
33 $table->string(
'region', 2)->nullable();
34 $table->string(
'city', 255)->nullable();
35 $table->string(
'load_id', 255);
36 $table->smallInteger(
'file_type')->nullable();