feat(db): packagefk virtual column refs #3126

This commit is contained in:
Pablo Natek 2023-10-19 15:05:19 +02:00
parent a5b6921592
commit 37209a223a
1 changed files with 5 additions and 2 deletions

View File

@ -1,2 +1,5 @@
ALTER TABLE vn.buy CHANGE packageFk packagingFk varchar(10)
CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '--' NULL;
ALTER TABLE `vn`.`buy` CHANGE `packageFk` `packagingFk` varchar(10)
CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '--' NULL;
ALTER TABLE `vn`.`buy`
ADD COLUMN `packageFk` varchar(10) AS (`packagingFk`) VIRTUAL;