Commit d14a7397 authored by GROSS-AMBLARD David's avatar GROSS-AMBLARD David
Browse files

Moving skill declaration into an init-skills.sql file in each project

parent f3e85bab
...@@ -29,6 +29,7 @@ function initialize($conn) ...@@ -29,6 +29,7 @@ function initialize($conn)
if(is_dir("$projectPath/$projectdir")) if(is_dir("$projectPath/$projectdir"))
if($projectdir!="disabled"){ if($projectdir!="disabled"){
debug("Loading project ".$projectdir); debug("Loading project ".$projectdir);
executeSqlFile("$projectPath/$projectdir/init-skills.sql", $conn);
executeSqlFile("$projectPath/$projectdir/init-workflow.sql", $conn); executeSqlFile("$projectPath/$projectdir/init-workflow.sql", $conn);
// load each .tmpl template file of each project // load each .tmpl template file of each project
$filenames=scandir("$projectPath/$projectdir"); $filenames=scandir("$projectPath/$projectdir");
......
This diff is collapsed.
insert into SkillTree values
(1000, 1, 'Art'),
(1001, 1000, 'Cinema'),
(1002, 2, 'SQL'),
(1003, 1, 'Headwork'),
(1004, 1003, 'Headwork Basics'),
(1005, 1003, 'Headwork Principles'),
(1006, 1003, 'Uncertain Answers');
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment