Submit changes?

master
sigonasr2 3 years ago
parent 5cfdd6c9d6
commit 7fd1a346ec
  1. 1
      ngsplanner_patch.sql
  2. 3
      ngsplanner_schema.sql
  3. 8
      ngsplanner_seed.sql
  4. 4
      server.js

@ -4,3 +4,4 @@ alter table augment add column element_id int;
alter table augment add column icon text;
alter table augment_type drop column icon;
alter table food add column rarity int;
alter table food add column food_type text;

@ -26,7 +26,8 @@ CREATE TABLE "food" (
"hp_recovery" boolean,
"popularity" int,
"editors_choice" int,
"rarity" int
"rarity" int,
"food_type" text
);
CREATE TABLE "class" (

@ -30,10 +30,10 @@ insert into food_mult(amount,potency,pp,dmg_res,hp,pp_consumption,pp_recovery,we
insert into food_mult(amount,potency,pp,dmg_res,hp,pp_consumption,pp_recovery,weak_point_dmg,hp_recovery)
values(1,1.05,10,1.05,1.05,1,1,1,1);
insert into food(name,description,icon,potency,pp,dmg_res,hp,pp_consumption,pp_recovery,weak_point_dmg,hp_recovery,popularity,editors_choice,rarity)
values('Rich Aelio Meat','Meat','',true,false,false,false,true,false,false,false,0,0,1);
insert into food(name,description,icon,potency,pp,dmg_res,hp,pp_consumption,pp_recovery,weak_point_dmg,hp_recovery,popularity,editors_choice,rarity)
values('Light Aelio Meat','Meat','',true,false,false,false,false,true,false,false,0,0,2);
insert into food(name,description,icon,potency,pp,dmg_res,hp,pp_consumption,pp_recovery,weak_point_dmg,hp_recovery,popularity,editors_choice,rarity,food_type)
values('Rich Aelio Meat','Meat','',true,false,false,false,true,false,false,false,0,0,1,'meat');
insert into food(name,description,icon,potency,pp,dmg_res,hp,pp_consumption,pp_recovery,weak_point_dmg,hp_recovery,popularity,editors_choice,rarity,food_type)
values('Light Aelio Meat','Meat','',true,false,false,false,false,true,false,false,0,0,2,'meat');
insert into class(name,icon) values('Hunter','/icons/UINGSClassHu.png');
insert into class(name,icon) values('Fighter','/icons/UINGSClassFi.png');

@ -199,8 +199,8 @@ const ENDPOINTDATA=[
},
{
endpoint:"food",
requiredfields:["name","rarity"],
optionalfields:["potency","pp","dmg_res","hp","pp_consumption","pp_recovery","weak_point_dmg","hp_recovery","popularity","editors_choice"],
requiredfields:["name","rarity","food_type"],
optionalfields:["potency","pp","dmg_res","hp","pp_consumption","pp_recovery","weak_point_dmg","hp_recovery","popularity","editors_choice","description","icon"],
excludedfields:[] //Fields to not output in GET.
},
{

Loading…
Cancel
Save