Implement site_data table to backend
This commit is contained in:
		
							parent
							
								
									3f3476de79
								
							
						
					
					
						commit
						03e7144eae
					
				| @ -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; | ||||
| 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"); | ||||
|  | ||||
| @ -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); | ||||
| 	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"], | ||||
| 		optionalfields:[], | ||||
| 		excludedfields:[] //Fields to not output in GET.
 | ||||
| 	} | ||||
| ] | ||||
| 
 | ||||
|  | ||||
| @ -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.
 | ||||
| 	} | ||||
| ] | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user