diff --git a/ngsplanner_patch.sql b/ngsplanner_patch.sql index 3a6faff..b557a1c 100644 --- a/ngsplanner_patch.sql +++ b/ngsplanner_patch.sql @@ -11,4 +11,5 @@ alter table armor rename column pb_gauge_build to slot; 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; \ No newline at end of file +alter table skill_tree_data add column halflineheight int; +CREATE TABLE "site_data" ("id" SERIAL UNIQUE PRIMARY KEY,"field" text,"data" text); diff --git a/ngsplanner_schema.sql b/ngsplanner_schema.sql index 5092b1c..37ecf75 100644 --- a/ngsplanner_schema.sql +++ b/ngsplanner_schema.sql @@ -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"); diff --git a/ngsplanner_seed.sql b/ngsplanner_seed.sql index c22a6cb..4dba741 100644 --- a/ngsplanner_seed.sql +++ b/ngsplanner_seed.sql @@ -277,4 +277,6 @@ insert into class_skill_data(name,class_skill_id,dependency,level,effect,duratio values('Assault Charge Advent',(SELECT id from class_skill WHERE name='Assault Charge Advent' limit 1),'',1,'Effect Name',30,24,1.0,1.1,false,0.8,'',0,0,0,0,0,0,0.6,0,0); 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); \ No newline at end of file + 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.'); \ No newline at end of file diff --git a/server.js b/server.js index e62947a..6cb7fcf 100644 --- a/server.js +++ b/server.js @@ -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"], + optionalfields:[], + excludedfields:[] //Fields to not output in GET. } ] diff --git a/server_test.js b/server_test.js index affa594..affb8c3 100644 --- a/server_test.js +++ b/server_test.js @@ -181,6 +181,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"], + optionalfields:[], + excludedfields:[] //Fields to not output in GET. } ]