@ -12,3 +12,4 @@ alter table armor add column battle_power_value text;
CREATE TABLE "skill_tree_data"("id" SERIAL UNIQUE PRIMARY KEY,"class_id" int,"data" text,"skill_data" text,"line_color" text,"line_width" int,"gridsizex" int,"gridsizey" int,"gridpaddingx" int,"gridpaddingy" int);
ALTER TABLE "skill_tree_data" ADD FOREIGN KEY ("class_id") REFERENCES "class" ("id");
alter table skill_tree_data add column halflineheight int;
CREATE TABLE "site_data" ("id" SERIAL UNIQUE PRIMARY KEY,"field" text,"data" text);
@ -320,6 +320,12 @@ CREATE TABLE "skill_tree_data" (
"halflineheight" int
);
CREATE TABLE "site_data" (
"id" SERIAL UNIQUE PRIMARY KEY,
"field" text,
"data" text
ALTER TABLE "builds" ADD FOREIGN KEY ("users_id") REFERENCES "users" ("id");
ALTER TABLE "users" ADD FOREIGN KEY ("roles_id") REFERENCES "roles" ("id");
@ -278,3 +278,5 @@ insert into class_skill_data(name,class_skill_id,dependency,level,effect,duratio
insert into skill_tree_data(class_id,data,skill_data,line_color,line_width,gridsizex,gridsizey,gridpaddingx,gridpaddingy,halflineheight)
values((select id from class where name='Hunter'),'□ □ ,└□─┘□□, │ ││, │ □│, □─□┼□, □ ','','#000000',3,80,60,10,10,60);
insert into site_data(field,data) values('UNDER_CONSTRUCTION_TEXT','NGSplanner.com is currently under construction! Please check back after Sig yells at me enough to help finish it.');
@ -226,6 +226,12 @@ const ENDPOINTDATA=[
requiredfields:["class_id","data","skill_data","line_color","line_width","gridsizex","gridsizey","gridpaddingx","gridpaddingy","halflineheight"],
optionalfields:[],
excludedfields:[] //Fields to not output in GET.
},
{
endpoint:"site_data",
requiredfields:["field","data"],
}
]
@ -181,6 +181,12 @@ const ENDPOINTDATA=[