table('toku_accounts') ->addColumn('toku_id', 'integer') ->addColumn('sociedad_rut', 'integer', ['limit' => 8]) ->addColumn('account_key', 'string', ['length' => 255]) ->addIndex(['toku_id'], ['unique' => true]) ->addIndex(['account_id'], ['unique' => true]) ->addForeignKey('sociedad_rut', 'sociedades', 'rut', ['delete' => 'CASCADE', 'update' => 'CASCADE']) ->addTimestamps() ->create(); } }