11 lines
452 B
SQL
11 lines
452 B
SQL
ALTER TABLE vn.specialPrice MODIFY COLUMN clientFk int(11) NULL;
|
|
ALTER TABLE vn.specialPrice ADD started date NOT NULL DEFAULT '2024-01-01';
|
|
ALTER TABLE vn.specialPrice ADD ended date NULL;
|
|
ALTER TABLE vn.specialPrice MODIFY COLUMN itemFk int(11) NOT NULL;
|
|
ALTER TABLE vn.specialPrice MODIFY COLUMN value DECIMAL(10,2) NOT NULL;
|
|
|
|
|
|
ALTER TABLE vn.`specialPrice`
|
|
ADD CONSTRAINT `check_date_range`
|
|
CHECK (`ended` IS NULL OR `ended` >= `started`);
|