Changeset 0dde3284defcb54d9a1e1cdba693040f9cfe061f

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

[b139234cf2a598a50ef3e155a6841059837cf2a7]

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

FK-Constraints fuer ship_loot eingebaut

Files:

Legend:

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

    r425acaa r0dde328  
    1212  KEY `owner` (`owner`) 
    1313) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Die Schiff-Loot-Table';  
     14 
     15ALTER TABLE ship_loot ADD CONSTRAINT ship_loot_fk_users1 FOREIGN KEY (owner) REFERENCES users(id); 
     16ALTER TABLE ship_loot ADD CONSTRAINT ship_loot_fk_users2 FOREIGN KEY (targetuser) REFERENCES users(id); 
  • db/updates.xml

    rb139234 r0dde328  
    189189                ALTER TABLE quests_running ADD CONSTRAINT quests_running_fk_quests FOREIGN KEY (questid) REFERENCES quests(id); 
    190190                ALTER TABLE sessions ADD CONSTRAINT sessions_fk_users FOREIGN KEY (id) REFERENCES users(id); 
     191                ALTER TABLE ship_loot ADD CONSTRAINT ship_loot_fk_users1 FOREIGN KEY (owner) REFERENCES users(id); 
     192                ALTER TABLE ship_loot ADD CONSTRAINT ship_loot_fk_users2 FOREIGN KEY (targetuser) REFERENCES users(id); 
    191193        ]]></update> 
    192194</updates>