<commit_before><?php

use yii\db\Migration;

class m161007_140207_parent_geek extends Migration
{
    public function SafeUp()
    {
        $this->addColumn("{{%geeks}}", 'parent_id', $this->integer()->defaultValue(NULL) . ' AFTER user_id');
    }

    public function SafeDown()
    {
        $this->dropColumn("{{%geeks}}", 'parent_id');
    }

}
<commit_msg>fix migration<commit_after><?php

use yii\db\Migration;

class m161007_140207_parent_geek extends Migration
{
    public function SafeUp()
    {
        $this->addColumn("{{%geeks}}", 'parent_id', $this->integer()->defaultValue(NULL) . ' AFTER user_id');
        $this->addForeignKey("FK_parent_geek", "{{%geeks}}", "parent_id", "{{%geeks}}", "id");
    }

    public function SafeDown()
    {
        $this->dropForeignKey("FK_parent_geek", "{{%geeks}}");
        $this->dropColumn("{{%geeks}}", 'parent_id');
    }

}

{'fraction_non_alphanumeric': 0.19501133786848074, 'fraction_numerical': 0.027210884353741496, 'mean_word_length': 3.772972972972973, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4257468', 'n_tokens_mistral': 331, 'n_tokens_neox': 312, 'n_words': 48}