Created
July 8, 2017 15:44
-
-
Save reginaldojunior/5ba02b0bfaa6a62e74a5e56393a8155d to your computer and use it in GitHub Desktop.
lancamento_vendas_alter.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALTER TABLE `winners`.`lancamento_vendas` | |
ADD INDEX `fk_lancamento_vendas_1_idx` (`venda_id` ASC); | |
ALTER TABLE `winners`.`lancamento_vendas` | |
ADD CONSTRAINT `fk_lancamento_vendas_1` | |
FOREIGN KEY (`venda_id`) | |
REFERENCES `winners`.`vendas` (`id`) | |
ON DELETE NO ACTION | |
ON UPDATE NO ACTION; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment