Open Journal Systems  3.3.0
UsageStatsMigration.inc.php
1 <?php
2 
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;
18 
19 class UsageStatsMigration extends Migration {
24  public function up() {
25  // Usage stats temporary records
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();
37  });
38  }
39 }
UsageStatsMigration
Describe database table structures.
Definition: UsageStatsMigration.inc.php:19
UsageStatsMigration\up
up()
Definition: UsageStatsMigration.inc.php:24