salix/db/versions/11387-whiteDendro/00-firstScript.sql

9 lines
404 B
MySQL
Raw Normal View History

CREATE TABLE IF NOT EXISTS vn.productionCountryVolume(
id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
countryFk MEDIUMINT(8) UNSIGNED NOT NULL,
estimate DECIMAL(6, 2),
PRIMARY KEY (id),
CONSTRAINT productionCountryVolume_countryFK
FOREIGN KEY (countryFk) REFERENCES vn.country (id)
ON DELETE RESTRICT ON UPDATE CASCADE
) COMMENT = 'Estimación del crecimiento por país'