luyadev/luya-module-admin

View on GitHub
src/migrations/m150304_152220_admin_storage_folder.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php


use yii\db\Migration;

class m150304_152220_admin_storage_folder extends Migration
{
    public function safeUp()
    {
        $this->createTable('{{%admin_storage_folder}}', [
            'id' => $this->primaryKey(),
            'name' => $this->string(255),
            'parent_id' => $this->integer(11),
            'timestamp_create' => $this->integer(11),
            'is_deleted' => $this->boolean()->defaultValue(false),
        ]);
    }

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