salix/db/versions/11009-tealRuscus/10-buyLotFk.sql

3 lines
110 B
SQL

ALTER TABLE vn.buy
ADD COLUMN IF NOT EXISTS lotFk INT UNSIGNED NOT NULL DEFAULT nextval(vn.buyLot) AFTER id;