ALTER TABLE `Debug` DROP FOREIGN KEY `Debug_ibfk_1` ;

ALTER TABLE `Debug` CHANGE `Server` `Realm` INT( 11 ) NOT NULL;

ALTER TABLE `Debug` ADD FOREIGN KEY ( `Realm` ) REFERENCES `Realm` (`Id`);

ALTER TABLE `Database` ADD `ACIDSourceFileName` VARCHAR( 255 ) NOT NULL ;

