Columns can't be reordered with ALTER. Rebuild stock so its columns are in the order sku, warehouse, qty, keeping all rows and the same name.
stock
Run your code to see the output here.