$this->alterColumn('transactions', 'result', Schema::TYPE_INTEGER . 'SET NOT NULL');
Lose error Syntax error: 7 ERROR: syntax error at or near "set". If you remove the SET, then the error falls on the word NOT , etc.$this->alterColumn('transactions', 'result', Schema::TYPE_INTEGER);
$this->alterColumn('transactions', 'result', 'SET NOT NULL');
Find more questions by tags PHPPostgreSQLYii