Changeset 5fac4d5dc42212c785d7ed7f9b66e5e5a3df0cd2
- 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
| r425acaa |
r5fac4d5 |
|
| 1 | 1 | CREATE TABLE `weaponfactory` ( |
|---|
| 2 | 2 | `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', |
|---|
| 4 | 4 | `count` tinyint(3) unsigned NOT NULL default '0', |
|---|
| 5 | 5 | `produces` text NOT NULL, |
|---|
| … | … | |
| 7 | 7 | KEY `col` (`col`) |
|---|
| 8 | 8 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Die Waffenfabriken'; |
|---|
| | 9 | |
|---|
| | 10 | ALTER TABLE weaponfactory ADD CONSTRAINT weaponfactory_fk_bases FOREIGN KEY (col) REFERENCES bases(id); |
|---|
| rc118afd |
r5fac4d5 |
|
| 211 | 211 | ALTER TABLE versteigerungen_pakete ADD CONSTRAINT versteigerungen_pakete_fk_users FOREIGN KEY (bieter) REFERENCES users(id); |
|---|
| 212 | 212 | 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); |
|---|
| 213 | 215 | ]]></update> |
|---|
| 214 | 216 | </updates> |
|---|