fix streaming
Added migrate script