2024-03-27 06:19:51 +00:00
|
|
|
ALTER TABLE vn.specialPrice MODIFY COLUMN clientFk int(11) NULL;
|
|
|
|
ALTER TABLE vn.specialPrice ADD started date NOT NULL DEFAULT '2024-01-01';
|
2024-03-26 11:07:23 +00:00
|
|
|
ALTER TABLE vn.specialPrice ADD ended date NULL;
|
2024-03-27 06:19:51 +00:00
|
|
|
ALTER TABLE vn.specialPrice MODIFY COLUMN itemFk int(11) NOT NULL;
|
|
|
|
ALTER TABLE vn.specialPrice MODIFY COLUMN value DECIMAL(10,2) NOT NULL;
|
|
|
|
|
2024-03-26 11:07:23 +00:00
|
|
|
|
2024-03-26 11:18:53 +00:00
|
|
|
ALTER TABLE vn.`specialPrice`
|
2024-03-26 11:07:23 +00:00
|
|
|
ADD CONSTRAINT `check_date_range`
|
|
|
|
CHECK (`ended` IS NULL OR `ended` >= `started`);
|