| | 577 | <update type="structure" datum="2008-05-31"><![CDATA[ |
|---|
| | 578 | CREATE TABLE `upgrade_info` ( |
|---|
| | 579 | `id` int(11) NOT NULL default '0', |
|---|
| | 580 | `type` int(5) NOT NULL default '1', |
|---|
| | 581 | `mod` int(11) NOT NULL default '0', |
|---|
| | 582 | `cargo` bool NOT NULL default FALSE, |
|---|
| | 583 | `price` int(11) NOT NULL default '0', |
|---|
| | 584 | `miningexplosive` int(11) NOT NULL default '0', |
|---|
| | 585 | `ore` int(11) NOT NULL default '0', |
|---|
| | 586 | PRIMARY KEY (`id`) |
|---|
| | 587 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
|---|
| | 588 | |
|---|
| | 589 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES ( 1, 1, 0, false, 0, 0, 0); |
|---|
| | 590 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES ( 2, 1, 10, false, 1250000, 125, 1250); |
|---|
| | 591 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES ( 3, 1, 20, false, 2500000, 250, 2500); |
|---|
| | 592 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES ( 4, 1, 30, false, 3750000, 375, 3750); |
|---|
| | 593 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES ( 5, 1, 40, false, 5000000, 500, 5000); |
|---|
| | 594 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES ( 6, 1, 0, true, 0, 0, 0); |
|---|
| | 595 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES ( 7, 1, 75000, true, 1500000, 300, 1250); |
|---|
| | 596 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES ( 8, 1, 150000, true, 2250000, 450, 2500); |
|---|
| | 597 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES ( 9, 1, 225000, true, 3000000, 600, 3750); |
|---|
| | 598 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES (10, 1, 300000, true, 3750000, 750, 5000); |
|---|
| | 599 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES (11, 1, 375000, true, 4500000, 900, 5000); |
|---|
| | 600 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES (12, 1, 450000, true, 5250000, 1050, 5000); |
|---|
| | 601 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES (13, 1, 525000, true, 6000000, 1200, 5000); |
|---|
| | 602 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES (14, 1, 600000, true, 6750000, 1350, 5000); |
|---|
| | 603 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES (15, 1, 0, false, 0, 0, 0); |
|---|
| | 604 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES (16, 2, 10, false, 1500000, 150, 1500); |
|---|
| | 605 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES (17, 2, 20, false, 3000000, 300, 3000); |
|---|
| | 606 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES (18, 2, 30, false, 4500000, 450, 4500); |
|---|
| | 607 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES (20, 2, 40, false, 6000000, 600, 6000); |
|---|
| | 608 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES (21, 2, 50, false, 7500000, 750, 7500); |
|---|
| | 609 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES (22, 2, 60, false, 9000000, 900, 9000); |
|---|
| | 610 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES (23, 2, 0, true, 0, 0, 0); |
|---|
| | 611 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES (24, 2, 125000, true, 3750000, 575, 4250); |
|---|
| | 612 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES (25, 2, 250000, true, 5000000, 850, 6000); |
|---|
| | 613 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES (26, 2, 375000, true, 6250000, 1125, 7750); |
|---|
| | 614 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES (27, 2, 500000, true, 7500000, 1400, 9500); |
|---|
| | 615 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES (28, 2, 625000, true, 8750000, 1675, 11250); |
|---|
| | 616 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES (29, 2, 750000, true, 10000000, 1950, 13000); |
|---|
| | 617 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES (30, 2, 875000, true, 11000000, 2225, 14750); |
|---|
| | 618 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES (31, 2, 1000000, true, 12500000, 2500, 16500); |
|---|
| | 619 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES (32, 3, 0, false, 0, 0, 0); |
|---|
| | 620 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES (33, 3, 10, false, 1000000, 100, 1000); |
|---|
| | 621 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES (34, 3, 20, false, 2000000, 200, 2000); |
|---|
| | 622 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES (35, 3, 0, true, 0, 0, 0); |
|---|
| | 623 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES (36, 3, 60000, true, 1200000, 240, 1600); |
|---|
| | 624 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES (37, 3, 120000, true, 1800000, 360, 2400); |
|---|
| | 625 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES (38, 3, 180000, true, 2400000, 480, 3200); |
|---|
| | 626 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES (39, 3, 240000, true, 3000000, 600, 4000); |
|---|
| | 627 | INSERT INTO `upgrade_info` (`id`, `type`, `mod`, `cargo`, `price`, `miningexplosive`, `ore`) VALUES (40, 3, 300000, true, 3600000, 720, 4800); |
|---|
| | 628 | |
|---|
| | 629 | CREATE TABLE `upgrade_job` ( |
|---|
| | 630 | `id` int(11) NOT NULL auto_increment, |
|---|
| | 631 | `baseid` int(11) NOT NULL default '0', |
|---|
| | 632 | `userid` int(11) NOT NULL default '0', |
|---|
| | 633 | `tiles` int(11) NOT NULL default '0', |
|---|
| | 634 | `cargo` int(11) NOT NULL default '0', |
|---|
| | 635 | `bar` bool NOT NULL default FALSE, |
|---|
| | 636 | `payed` bool NOT NULL default FALSE, |
|---|
| | 637 | `colonizerid` int(11) NOT NULL default '0', |
|---|
| | 638 | `started` int(11) NOT NULL default '0', |
|---|
| | 639 | PRIMARY KEY (`id`) |
|---|
| | 640 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
|---|
| | 641 | |
|---|
| | 642 | ALTER TABLE upgrade_job ADD CONSTRAINT upgrade_job_fk_base FOREIGN KEY (baseid) REFERENCES bases(id); |
|---|
| | 643 | ALTER TABLE upgrade_job ADD CONSTRAINT upgrade_job_fk_user FOREIGN KEY (userid) REFERENCES users(id); |
|---|
| | 644 | ALTER TABLE upgrade_job ADD CONSTRAINT upgrade_job_fk_ships FOREIGN KEY (colonizerid) REFERENCES ships(id); |
|---|
| | 645 | ALTER TABLE upgrade_job ADD CONSTRAINT upgrade_job_fk_mod_tiles FOREIGN KEY (tiles) REFERENCES upgrade_info(id); |
|---|
| | 646 | ALTER TABLE upgrade_job ADD CONSTRAINT upgrade_job_fk_mod_cargo FOREIGN KEY (cargo) REFERENCES upgrade_info(id); |
|---|
| | 647 | ]]></update> |
|---|