libs/override/db/NpMigration.php
public function addCreatorID($tableName, $columnName = 'creator_id')
    {
        $this->addColumn('{{%' . $tableName . '}}', $columnName,
            $this->bigInteger()->comment('ID of user who created this item'));
        $this->createIndex($tableName . '_' . $columnName . '_idx', '{{%' . $tableName . '}}', $columnName);
    }
public function addCreatorID($tableName, $columnName = 'creator_id')
    {
        $this->addColumn('{{%' . $tableName . '}}', $columnName,
            $this->bigInteger()->comment('ID of user who created this item'));
        $this->createIndex($tableName . '_' . $columnName . '_idx', '{{%' . $tableName . '}}', $columnName);
    }
public function addCreatorID ( $ tableName , $ columnName = 'creator_id' ) { $ this -> addColumn ( '{{%' . $ tableName . '}}' , $ columnName , $ this -> bigInteger ( ) -> comment ( 'ID of user who created this item' ) ) ; $ this -> createIndex ( $ tableName . '_' . $ columnName . '_idx' , '{{%' . $ tableName . '}}' , $ columnName ) ; }
Add and put Index to creator_id column
Store id of user who create this record
@param $tableName
Add and put Index to creator_id column Store id of user who create this record