<?php

use Phinx\Migration\AbstractMigration;

class AllowNullOnCreatedColsInHistoricTables extends AbstractMigration {
    public function change() {
        $t = $this->table('historic_actions');
        $t->changeColumn('created_at', 'datetime', ['null' => true]);
        $t->changeColumn('created_by', 'string', ['null' => true]);
        $t->update();
    }
}

Fix created_at NULL throws errors on some SQL servers
Fix created_at NULL throws errors on some SQL servers
