Browse Source

Renamed column "agent_id" to "agreement_list_agent_id" in one more place

Dmitry Yu Okunev 5 years ago
parent
commit
8c6ad9c777
2 changed files with 5 additions and 4 deletions
  1. BIN
      doc/tables.mwb
  2. 5 4
      doc/tables.sql

BIN
doc/tables.mwb


+ 5 - 4
doc/tables.sql

@@ -1,5 +1,5 @@
 -- MySQL Script generated by MySQL Workbench
+-- Mon 28 Dec 2015 08:23:41 PM MSK
 -- Model: New Model    Version: 1.0
 -- MySQL Workbench Forward Engineering
 
@@ -198,11 +198,11 @@ DROP TABLE IF EXISTS `redmine_development`.`agreement_procedure_step_list_agents
 
 CREATE TABLE IF NOT EXISTS `redmine_development`.`agreement_procedure_step_list_agents` (
   `agreement_procedure_step_list_agent_id` INT NOT NULL AUTO_INCREMENT,
-  `agent_id` INT NULL,
+  `agreement_list_agent_id` INT NULL,
   `agreement_procedure_step_id` INT NULL,
   PRIMARY KEY (`agreement_procedure_step_list_agent_id`),
   CONSTRAINT `fk_agreement_procedure_step_list_agents_1`
-    FOREIGN KEY (`agent_id`)
+    FOREIGN KEY (`agreement_list_agent_id`)
     REFERENCES `redmine_development`.`agreement_list_agents` (`agent_id`)
     ON DELETE RESTRICT
     ON UPDATE CASCADE,
@@ -213,11 +213,11 @@ CREATE TABLE IF NOT EXISTS `redmine_development`.`agreement_procedure_step_list_
     ON UPDATE CASCADE)
 ENGINE = InnoDB;
 
-CREATE INDEX `fk_agreement_procedure_step_list_agents_1_idx` ON `redmine_development`.`agreement_procedure_step_list_agents` (`agent_id` ASC);
+CREATE INDEX `fk_agreement_procedure_step_list_agents_1_idx` ON `redmine_development`.`agreement_procedure_step_list_agents` (`agreement_list_agent_id` ASC);
 
 CREATE INDEX `fk_agreement_procedure_step_list_agents_2_idx` ON `redmine_development`.`agreement_procedure_step_list_agents` (`agreement_procedure_step_id` ASC);
 
-CREATE UNIQUE INDEX `uniidx` ON `redmine_development`.`agreement_procedure_step_list_agents` (`agent_id` ASC, `agreement_procedure_step_id` ASC);
+CREATE UNIQUE INDEX `uniidx` ON `redmine_development`.`agreement_procedure_step_list_agents` (`agreement_list_agent_id` ASC, `agreement_procedure_step_id` ASC);
 
 
 -- -----------------------------------------------------