luyadev/luya-module-errorapi

View on GitHub
src/migrations/m150210_102242_error_data.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php


use yii\db\Migration;

class m150210_102242_error_data extends Migration
{
    public function safeUp()
    {
        $this->createTable('error_data', [
            'id' => $this->primaryKey(),
            'identifier' => $this->string(255),
            'error_json' => $this->text(),
            'timestamp_create' => $this->integer(11)->defaultValue(0),
        ]);
    }

    public function safeDown()
    {
        $this->dropTable('error_data');
    }
}