HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/mmickelson/spilicensing/database/migrations/2016_03_28_230137_create_histories_table.php
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateHistoriesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {        
        Schema::create('histories', function(Blueprint $table)
        {
            $table->increments('id');
            $table->string('message');
            $table->string('errorMessage');
            $table->integer('activityType_id')->unsigned();
            $table->integer('license_id')->unsigned();
            $table->integer('system_id')->unsigned();
            $table->dateTime('date');

            $table->timestamps();
        });

        Schema::table('histories', function($table)
        {
            $table->foreign('license_id')->references('id')->on('licenses');
            $table->foreign('system_id')->references('id')->on('systems');
            $table->foreign('activityType_id')->references('id')->on('activity_types');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('histories');
    }

}