Fix column for StockTransaction.type
Add migration code for branch, product_stock and stock_transactions tables