Changeset 5fac4d5dc42212c785d7ed7f9b66e5e5a3df0cd2

Show
Ignore:
Timestamp:
03/17/07 15:49:16 (1 year ago)
Author:
Christopher Jung <bktheg@web.de>
git-committer:
Christopher Jung <bktheg@web.de> 1174142956 +0100
git-parent:

[c118afd89ea838de9f57061b0403228faf8a9193]

git-author:
Christopher Jung <bktheg@web.de> 1174142956 +0100
Message:

FK-Constraint fuer weaponfactory.col eingebaut

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • db/tables/weaponfactory.sql

    r425acaa r5fac4d5  
    11CREATE TABLE `weaponfactory` ( 
    22  `id` mediumint(8) unsigned NOT NULL auto_increment, 
    3   `col` int(10) unsigned NOT NULL default '0', 
     3  `col` int(11) NOT NULL default '0', 
    44  `count` tinyint(3) unsigned NOT NULL default '0', 
    55  `produces` text NOT NULL, 
     
    77  KEY `col` (`col`) 
    88) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Die Waffenfabriken';  
     9 
     10ALTER TABLE weaponfactory ADD CONSTRAINT weaponfactory_fk_bases FOREIGN KEY (col) REFERENCES bases(id); 
  • db/updates.xml

    rc118afd r5fac4d5  
    211211                ALTER TABLE versteigerungen_pakete ADD CONSTRAINT versteigerungen_pakete_fk_users FOREIGN KEY (bieter) REFERENCES users(id); 
    212212                ALTER TABLE versteigerungen ADD CONSTRAINT versteigerungen_fk_users FOREIGN KEY (bieter) REFERENCES users(id); 
     213                ALTER TABLE weaponfactory CHANGE col col INT NOT NULL DEFAULT '0'; 
     214                ALTER TABLE weaponfactory ADD CONSTRAINT weaponfactory_fk_bases FOREIGN KEY (col) REFERENCES bases(id); 
    213215        ]]></update> 
    214216</updates>