siegable_clanhall.sql 1.6 KB

12345678910111213141516171819202122232425262728
  1. -- schedule_config format: Time to add from the last siege in this format DD;MM;YY;HH;mm
  2. -- DD = Days to add to the current date for next siege
  3. -- MM = Month to add to the current date for the next siege
  4. -- YY = Years to add to the current date for the next siege
  5. -- HH = Hour of the day when siege must start
  6. -- mm = Minutes of the day when siege must start
  7. -- Example for a siege each 7 days which starts at 12 o clock: 7;0;0;12;00
  8. CREATE TABLE IF NOT EXISTS `siegable_clanhall` (
  9. `clanHallId` int(10) NOT NULL DEFAULT '0',
  10. `name` varchar(45) DEFAULT NULL,
  11. `ownerId` int(10) DEFAULT NULL,
  12. `desc` varchar(100) DEFAULT NULL,
  13. `location` varchar(100) DEFAULT NULL,
  14. `nextSiege` bigint(20) DEFAULT NULL,
  15. `siegeLenght` int(10) DEFAULT NULL,
  16. `schedule_config` varchar(20) DEFAULT NULL,
  17. PRIMARY KEY (`clanHallId`),
  18. KEY `ownerId` (`ownerId`)
  19. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  20. INSERT IGNORE INTO `siegable_clanhall` (`clanHallId`, `name`, `ownerId`, `desc`, `location`, `nextSiege`, `siegeLenght`, `schedule_config`) VALUES
  21. (21, 'Fortress of Resistance', 0, 'Contestable Clan Hall', 'Dion', 0, 3600000, '14;0;0;12;00'),
  22. (34, 'Devastated Castle', 0, 'Contestable Clan Hall', 'Aden', 0, 3600000, '14;0;0;12;00'),
  23. (35, 'Bandit StrongHold', 0, 'Contestable Clan Hall', 'Oren', 0, 3600000, '14;0;0;12;00'),
  24. (62, 'Rainbow Springs', 0, 'Contestable Clan Hall', 'Goddard', 0, 3600000, '14;0;0;12;00'),
  25. (63, 'Beast Farm', 0, 'Contestable Clan Hall', 'Rune', 0, 3600000, '14;0;0;12;00'),
  26. (64, 'Fortresss of the Dead', 0, 'Contestable Clan Hall', 'Rune', 0, 3600000, '14;0;0;12;00');