feat: refs #8073 change names and primary key
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Ivan Mas 2024-12-18 15:06:49 +01:00
parent 5620242d7e
commit 148ab57b1a
1 changed files with 3 additions and 4 deletions

View File

@ -1,8 +1,7 @@
CREATE TABLE IF NOT EXISTS vn.productionCountryVolume(
id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
CREATE TABLE IF NOT EXISTS vn.productionCountry(
countryFk MEDIUMINT(8) UNSIGNED NOT NULL,
estimate DECIMAL(6, 2),
PRIMARY KEY (id),
volumeGrowthEstimatePercent DECIMAL(6, 2),
PRIMARY KEY (countryFk),
CONSTRAINT productionCountryVolume_countryFK
FOREIGN KEY (countryFk) REFERENCES vn.country (id)
ON DELETE RESTRICT ON UPDATE CASCADE