diff --git a/lib/Lacuna/DB/Result/Map/Body.pm b/lib/Lacuna/DB/Result/Map/Body.pm index 76f64b41..5b531ad3 100644 --- a/lib/Lacuna/DB/Result/Map/Body.pm +++ b/lib/Lacuna/DB/Result/Map/Body.pm @@ -17,105 +17,105 @@ __PACKAGE__->add_columns( usable_as_starter_enabled => { data_type => 'tinyint', default_value => 0 }, empire_id => { data_type => 'int', is_nullable => 1 }, last_tick => { data_type => 'datetime', is_nullable => 0, set_on_create => 1 }, - happiness_hour => { data_type => 'int', default_value => 0 }, + happiness_hour => { data_type => 'bigint', default_value => 0 }, happiness => { data_type => 'bigint', default_value => 0 }, - waste_hour => { data_type => 'int', default_value => 0 }, - waste_stored => { data_type => 'int', default_value => 0 }, - waste_capacity => { data_type => 'int', default_value => 0 }, - energy_hour => { data_type => 'int', default_value => 0 }, - energy_stored => { data_type => 'int', default_value => 0 }, - energy_capacity => { data_type => 'int', default_value => 0 }, - water_hour => { data_type => 'int', default_value => 0 }, - water_stored => { data_type => 'int', default_value => 0 }, - water_capacity => { data_type => 'int', default_value => 0 }, - ore_capacity => { data_type => 'int', default_value => 0 }, - rutile_stored => { data_type => 'int', default_value => 0 }, - chromite_stored => { data_type => 'int', default_value => 0 }, - chalcopyrite_stored => { data_type => 'int', default_value => 0 }, - galena_stored => { data_type => 'int', default_value => 0 }, - gold_stored => { data_type => 'int', default_value => 0 }, - uraninite_stored => { data_type => 'int', default_value => 0 }, - bauxite_stored => { data_type => 'int', default_value => 0 }, - goethite_stored => { data_type => 'int', default_value => 0 }, - halite_stored => { data_type => 'int', default_value => 0 }, - gypsum_stored => { data_type => 'int', default_value => 0 }, - trona_stored => { data_type => 'int', default_value => 0 }, - kerogen_stored => { data_type => 'int', default_value => 0 }, - methane_stored => { data_type => 'int', default_value => 0 }, - anthracite_stored => { data_type => 'int', default_value => 0 }, - sulfur_stored => { data_type => 'int', default_value => 0 }, - zircon_stored => { data_type => 'int', default_value => 0 }, - monazite_stored => { data_type => 'int', default_value => 0 }, - fluorite_stored => { data_type => 'int', default_value => 0 }, - beryl_stored => { data_type => 'int', default_value => 0 }, - magnetite_stored => { data_type => 'int', default_value => 0 }, - rutile_hour => { data_type => 'int', default_value => 0 }, - chromite_hour => { data_type => 'int', default_value => 0 }, - chalcopyrite_hour => { data_type => 'int', default_value => 0 }, - galena_hour => { data_type => 'int', default_value => 0 }, - gold_hour => { data_type => 'int', default_value => 0 }, - uraninite_hour => { data_type => 'int', default_value => 0 }, - bauxite_hour => { data_type => 'int', default_value => 0 }, - goethite_hour => { data_type => 'int', default_value => 0 }, - halite_hour => { data_type => 'int', default_value => 0 }, - gypsum_hour => { data_type => 'int', default_value => 0 }, - trona_hour => { data_type => 'int', default_value => 0 }, - kerogen_hour => { data_type => 'int', default_value => 0 }, - methane_hour => { data_type => 'int', default_value => 0 }, - anthracite_hour => { data_type => 'int', default_value => 0 }, - sulfur_hour => { data_type => 'int', default_value => 0 }, - zircon_hour => { data_type => 'int', default_value => 0 }, - monazite_hour => { data_type => 'int', default_value => 0 }, - fluorite_hour => { data_type => 'int', default_value => 0 }, - beryl_hour => { data_type => 'int', default_value => 0 }, - magnetite_hour => { data_type => 'int', default_value => 0 }, - ore_hour => { data_type => 'int', default_value => 0 }, - food_capacity => { data_type => 'int', default_value => 0 }, - food_consumption_hour => { data_type => 'int', default_value => 0 }, - lapis_production_hour => { data_type => 'int', default_value => 0 }, - potato_production_hour => { data_type => 'int', default_value => 0 }, - apple_production_hour => { data_type => 'int', default_value => 0 }, - root_production_hour => { data_type => 'int', default_value => 0 }, - corn_production_hour => { data_type => 'int', default_value => 0 }, - cider_production_hour => { data_type => 'int', default_value => 0 }, - wheat_production_hour => { data_type => 'int', default_value => 0 }, - bread_production_hour => { data_type => 'int', default_value => 0 }, - soup_production_hour => { data_type => 'int', default_value => 0 }, - chip_production_hour => { data_type => 'int', default_value => 0 }, - pie_production_hour => { data_type => 'int', default_value => 0 }, - pancake_production_hour => { data_type => 'int', default_value => 0 }, - milk_production_hour => { data_type => 'int', default_value => 0 }, - meal_production_hour => { data_type => 'int', default_value => 0 }, - algae_production_hour => { data_type => 'int', default_value => 0 }, - syrup_production_hour => { data_type => 'int', default_value => 0 }, - fungus_production_hour => { data_type => 'int', default_value => 0 }, - burger_production_hour => { data_type => 'int', default_value => 0 }, - shake_production_hour => { data_type => 'int', default_value => 0 }, - beetle_production_hour => { data_type => 'int', default_value => 0 }, - bean_production_hour => { data_type => 'int', default_value => 0 }, - cheese_production_hour => { data_type => 'int', default_value => 0 }, - cheese_stored => { data_type => 'int', default_value => 0 }, - bean_stored => { data_type => 'int', default_value => 0 }, - lapis_stored => { data_type => 'int', default_value => 0 }, - potato_stored => { data_type => 'int', default_value => 0 }, - apple_stored => { data_type => 'int', default_value => 0 }, - root_stored => { data_type => 'int', default_value => 0 }, - corn_stored => { data_type => 'int', default_value => 0 }, - cider_stored => { data_type => 'int', default_value => 0 }, - wheat_stored => { data_type => 'int', default_value => 0 }, - bread_stored => { data_type => 'int', default_value => 0 }, - soup_stored => { data_type => 'int', default_value => 0 }, - chip_stored => { data_type => 'int', default_value => 0 }, - pie_stored => { data_type => 'int', default_value => 0 }, - pancake_stored => { data_type => 'int', default_value => 0 }, - milk_stored => { data_type => 'int', default_value => 0 }, - meal_stored => { data_type => 'int', default_value => 0 }, - algae_stored => { data_type => 'int', default_value => 0 }, - syrup_stored => { data_type => 'int', default_value => 0 }, - fungus_stored => { data_type => 'int', default_value => 0 }, - burger_stored => { data_type => 'int', default_value => 0 }, - shake_stored => { data_type => 'int', default_value => 0 }, - beetle_stored => { data_type => 'int', default_value => 0 }, + waste_hour => { data_type => 'bigint', default_value => 0 }, + waste_stored => { data_type => 'bigint', default_value => 0 }, + waste_capacity => { data_type => 'bigint', default_value => 0 }, + energy_hour => { data_type => 'bigint', default_value => 0 }, + energy_stored => { data_type => 'bigint', default_value => 0 }, + energy_capacity => { data_type => 'bigint', default_value => 0 }, + water_hour => { data_type => 'bigint', default_value => 0 }, + water_stored => { data_type => 'bigint', default_value => 0 }, + water_capacity => { data_type => 'bigint', default_value => 0 }, + ore_capacity => { data_type => 'bigint', default_value => 0 }, + rutile_stored => { data_type => 'bigint', default_value => 0 }, + chromite_stored => { data_type => 'bigint', default_value => 0 }, + chalcopyrite_stored => { data_type => 'bigint', default_value => 0 }, + galena_stored => { data_type => 'bigint', default_value => 0 }, + gold_stored => { data_type => 'bigint', default_value => 0 }, + uraninite_stored => { data_type => 'bigint', default_value => 0 }, + bauxite_stored => { data_type => 'bigint', default_value => 0 }, + goethite_stored => { data_type => 'bigint', default_value => 0 }, + halite_stored => { data_type => 'bigint', default_value => 0 }, + gypsum_stored => { data_type => 'bigint', default_value => 0 }, + trona_stored => { data_type => 'bigint', default_value => 0 }, + kerogen_stored => { data_type => 'bigint', default_value => 0 }, + methane_stored => { data_type => 'bigint', default_value => 0 }, + anthracite_stored => { data_type => 'bigint', default_value => 0 }, + sulfur_stored => { data_type => 'bigint', default_value => 0 }, + zircon_stored => { data_type => 'bigint', default_value => 0 }, + monazite_stored => { data_type => 'bigint', default_value => 0 }, + fluorite_stored => { data_type => 'bigint', default_value => 0 }, + beryl_stored => { data_type => 'bigint', default_value => 0 }, + magnetite_stored => { data_type => 'bigint', default_value => 0 }, + rutile_hour => { data_type => 'bigint', default_value => 0 }, + chromite_hour => { data_type => 'bigint', default_value => 0 }, + chalcopyrite_hour => { data_type => 'bigint', default_value => 0 }, + galena_hour => { data_type => 'bigint', default_value => 0 }, + gold_hour => { data_type => 'bigint', default_value => 0 }, + uraninite_hour => { data_type => 'bigint', default_value => 0 }, + bauxite_hour => { data_type => 'bigint', default_value => 0 }, + goethite_hour => { data_type => 'bigint', default_value => 0 }, + halite_hour => { data_type => 'bigint', default_value => 0 }, + gypsum_hour => { data_type => 'bigint', default_value => 0 }, + trona_hour => { data_type => 'bigint', default_value => 0 }, + kerogen_hour => { data_type => 'bigint', default_value => 0 }, + methane_hour => { data_type => 'bigint', default_value => 0 }, + anthracite_hour => { data_type => 'bigint', default_value => 0 }, + sulfur_hour => { data_type => 'bigint', default_value => 0 }, + zircon_hour => { data_type => 'bigint', default_value => 0 }, + monazite_hour => { data_type => 'bigint', default_value => 0 }, + fluorite_hour => { data_type => 'bigint', default_value => 0 }, + beryl_hour => { data_type => 'bigint', default_value => 0 }, + magnetite_hour => { data_type => 'bigint', default_value => 0 }, + ore_hour => { data_type => 'bigint', default_value => 0 }, + food_capacity => { data_type => 'bigint', default_value => 0 }, + food_consumption_hour => { data_type => 'bigint', default_value => 0 }, + lapis_production_hour => { data_type => 'bigint', default_value => 0 }, + potato_production_hour => { data_type => 'bigint', default_value => 0 }, + apple_production_hour => { data_type => 'bigint', default_value => 0 }, + root_production_hour => { data_type => 'bigint', default_value => 0 }, + corn_production_hour => { data_type => 'bigint', default_value => 0 }, + cider_production_hour => { data_type => 'bigint', default_value => 0 }, + wheat_production_hour => { data_type => 'bigint', default_value => 0 }, + bread_production_hour => { data_type => 'bigint', default_value => 0 }, + soup_production_hour => { data_type => 'bigint', default_value => 0 }, + chip_production_hour => { data_type => 'bigint', default_value => 0 }, + pie_production_hour => { data_type => 'bigint', default_value => 0 }, + pancake_production_hour => { data_type => 'bigint', default_value => 0 }, + milk_production_hour => { data_type => 'bigint', default_value => 0 }, + meal_production_hour => { data_type => 'bigint', default_value => 0 }, + algae_production_hour => { data_type => 'bigint', default_value => 0 }, + syrup_production_hour => { data_type => 'bigint', default_value => 0 }, + fungus_production_hour => { data_type => 'bigint', default_value => 0 }, + burger_production_hour => { data_type => 'bigint', default_value => 0 }, + shake_production_hour => { data_type => 'bigint', default_value => 0 }, + beetle_production_hour => { data_type => 'bigint', default_value => 0 }, + bean_production_hour => { data_type => 'bigint', default_value => 0 }, + cheese_production_hour => { data_type => 'bigint', default_value => 0 }, + cheese_stored => { data_type => 'bigint', default_value => 0 }, + bean_stored => { data_type => 'bigint', default_value => 0 }, + lapis_stored => { data_type => 'bigint', default_value => 0 }, + potato_stored => { data_type => 'bigint', default_value => 0 }, + apple_stored => { data_type => 'bigint', default_value => 0 }, + root_stored => { data_type => 'bigint', default_value => 0 }, + corn_stored => { data_type => 'bigint', default_value => 0 }, + cider_stored => { data_type => 'bigint', default_value => 0 }, + wheat_stored => { data_type => 'bigint', default_value => 0 }, + bread_stored => { data_type => 'bigint', default_value => 0 }, + soup_stored => { data_type => 'bigint', default_value => 0 }, + chip_stored => { data_type => 'bigint', default_value => 0 }, + pie_stored => { data_type => 'bigint', default_value => 0 }, + pancake_stored => { data_type => 'bigint', default_value => 0 }, + milk_stored => { data_type => 'bigint', default_value => 0 }, + meal_stored => { data_type => 'bigint', default_value => 0 }, + algae_stored => { data_type => 'bigint', default_value => 0 }, + syrup_stored => { data_type => 'bigint', default_value => 0 }, + fungus_stored => { data_type => 'bigint', default_value => 0 }, + burger_stored => { data_type => 'bigint', default_value => 0 }, + shake_stored => { data_type => 'bigint', default_value => 0 }, + beetle_stored => { data_type => 'bigint', default_value => 0 }, boost_enabled => { data_type => 'tinyint', default_value => 0 }, needs_recalc => { data_type => 'tinyint', default_value => 0 }, needs_surface_refresh => { data_type => 'tinyint', default_value => 0 }, diff --git a/var/upgrades/3.0100.sql b/var/upgrades/3.0100.sql new file mode 100644 index 00000000..139d247d --- /dev/null +++ b/var/upgrades/3.0100.sql @@ -0,0 +1,99 @@ +alter table body change happiness_hour happiness_hour bigint not null default 0; +alter table body change waste_hour waste_hour bigint not null default 0; +alter table body change waste_stored waste_stored bigint not null default 0; +alter table body change waste_capacity waste_capacity bigint not null default 0; +alter table body change energy_hour energy_hour bigint not null default 0; +alter table body change energy_stored energy_stored bigint not null default 0; +alter table body change energy_capacity energy_capacity bigint not null default 0; +alter table body change water_hour water_hour bigint not null default 0; +alter table body change water_stored water_stored bigint not null default 0; +alter table body change water_capacity water_capacity bigint not null default 0; +alter table body change ore_capacity ore_capacity bigint not null default 0; +alter table body change rutile_stored rutile_stored bigint not null default 0; +alter table body change chromite_stored chromite_stored bigint not null default 0; +alter table body change chalcopyrite_stored chalcopyrite_stored bigint not null default 0; +alter table body change galena_stored galena_stored bigint not null default 0; +alter table body change gold_stored gold_stored bigint not null default 0; +alter table body change uraninite_stored uraninite_stored bigint not null default 0; +alter table body change bauxite_stored bauxite_stored bigint not null default 0; +alter table body change goethite_stored goethite_stored bigint not null default 0; +alter table body change halite_stored halite_stored bigint not null default 0; +alter table body change gypsum_stored gypsum_stored bigint not null default 0; +alter table body change trona_stored trona_stored bigint not null default 0; +alter table body change kerogen_stored kerogen_stored bigint not null default 0; +alter table body change methane_stored methane_stored bigint not null default 0; +alter table body change anthracite_stored anthracite_stored bigint not null default 0; +alter table body change sulfur_stored sulfur_stored bigint not null default 0; +alter table body change zircon_stored zircon_stored bigint not null default 0; +alter table body change monazite_stored monazite_stored bigint not null default 0; +alter table body change fluorite_stored fluorite_stored bigint not null default 0; +alter table body change beryl_stored beryl_stored bigint not null default 0; +alter table body change magnetite_stored magnetite_stored bigint not null default 0; +alter table body change rutile_hour rutile_hour bigint not null default 0; +alter table body change chromite_hour chromite_hour bigint not null default 0; +alter table body change chalcopyrite_hour chalcopyrite_hour bigint not null default 0; +alter table body change galena_hour galena_hour bigint not null default 0; +alter table body change gold_hour gold_hour bigint not null default 0; +alter table body change uraninite_hour uraninite_hour bigint not null default 0; +alter table body change bauxite_hour bauxite_hour bigint not null default 0; +alter table body change goethite_hour goethite_hour bigint not null default 0; +alter table body change halite_hour halite_hour bigint not null default 0; +alter table body change gypsum_hour gypsum_hour bigint not null default 0; +alter table body change trona_hour trona_hour bigint not null default 0; +alter table body change kerogen_hour kerogen_hour bigint not null default 0; +alter table body change methane_hour methane_hour bigint not null default 0; +alter table body change anthracite_hour anthracite_hour bigint not null default 0; +alter table body change sulfur_hour sulfur_hour bigint not null default 0; +alter table body change zircon_hour zircon_hour bigint not null default 0; +alter table body change monazite_hour monazite_hour bigint not null default 0; +alter table body change fluorite_hour fluorite_hour bigint not null default 0; +alter table body change beryl_hour beryl_hour bigint not null default 0; +alter table body change magnetite_hour magnetite_hour bigint not null default 0; +alter table body change ore_hour ore_hour bigint not null default 0; +alter table body change food_capacity food_capacity bigint not null default 0; +alter table body change food_consumption_hour food_consumption_hour bigint not null default 0; +alter table body change lapis_production_hour lapis_production_hour bigint not null default 0; +alter table body change potato_production_hour potato_production_hour bigint not null default 0; +alter table body change apple_production_hour apple_production_hour bigint not null default 0; +alter table body change root_production_hour root_production_hour bigint not null default 0; +alter table body change corn_production_hour corn_production_hour bigint not null default 0; +alter table body change cider_production_hour cider_production_hour bigint not null default 0; +alter table body change wheat_production_hour wheat_production_hour bigint not null default 0; +alter table body change bread_production_hour bread_production_hour bigint not null default 0; +alter table body change soup_production_hour soup_production_hour bigint not null default 0; +alter table body change chip_production_hour chip_production_hour bigint not null default 0; +alter table body change pie_production_hour pie_production_hour bigint not null default 0; +alter table body change pancake_production_hour pancake_production_hour bigint not null default 0; +alter table body change milk_production_hour milk_production_hour bigint not null default 0; +alter table body change meal_production_hour meal_production_hour bigint not null default 0; +alter table body change algae_production_hour algae_production_hour bigint not null default 0; +alter table body change syrup_production_hour syrup_production_hour bigint not null default 0; +alter table body change fungus_production_hour fungus_production_hour bigint not null default 0; +alter table body change burger_production_hour burger_production_hour bigint not null default 0; +alter table body change shake_production_hour shake_production_hour bigint not null default 0; +alter table body change beetle_production_hour beetle_production_hour bigint not null default 0; +alter table body change bean_production_hour bean_production_hour bigint not null default 0; +alter table body change cheese_production_hour cheese_production_hour bigint not null default 0; +alter table body change cheese_stored cheese_stored bigint not null default 0; +alter table body change bean_stored bean_stored bigint not null default 0; +alter table body change lapis_stored lapis_stored bigint not null default 0; +alter table body change potato_stored potato_stored bigint not null default 0; +alter table body change apple_stored apple_stored bigint not null default 0; +alter table body change root_stored root_stored bigint not null default 0; +alter table body change corn_stored corn_stored bigint not null default 0; +alter table body change cider_stored cider_stored bigint not null default 0; +alter table body change wheat_stored wheat_stored bigint not null default 0; +alter table body change bread_stored bread_stored bigint not null default 0; +alter table body change soup_stored soup_stored bigint not null default 0; +alter table body change chip_stored chip_stored bigint not null default 0; +alter table body change pie_stored pie_stored bigint not null default 0; +alter table body change pancake_stored pancake_stored bigint not null default 0; +alter table body change milk_stored milk_stored bigint not null default 0; +alter table body change meal_stored meal_stored bigint not null default 0; +alter table body change algae_stored algae_stored bigint not null default 0; +alter table body change syrup_stored syrup_stored bigint not null default 0; +alter table body change fungus_stored fungus_stored bigint not null default 0; +alter table body change burger_stored burger_stored bigint not null default 0; +alter table body change shake_stored shake_stored bigint not null default 0; +alter table body change beetle_stored beetle_stored bigint not null default 0; + \ No newline at end of file diff --git a/var/www/public/changes.txt b/var/www/public/changes.txt index 7f9aa9eb..51142dc1 100644 --- a/var/www/public/changes.txt +++ b/var/www/public/changes.txt @@ -1,5 +1,6 @@ 3.0100 - - Deployed bleeders now require a captcha to be demolished. + - Rule: Deployed bleeders now require a captcha to be demolished. + - Fix: All body resource attributes have been upgraded to support 9223372036854775807 instead of 2147483647. 3.0001 - Add: Added Space Station Lab building, which will eventually allow building space station modules.