Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
druid-public
headwork
Commits
d14a7397
Commit
d14a7397
authored
Apr 23, 2021
by
GROSS-AMBLARD David
Browse files
Moving skill declaration into an init-skills.sql file in each project
parent
f3e85bab
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
actions.php
View file @
d14a7397
...
...
@@ -29,6 +29,7 @@ function initialize($conn)
if
(
is_dir
(
"
$projectPath
/
$projectdir
"
))
if
(
$projectdir
!=
"disabled"
){
debug
(
"Loading project "
.
$projectdir
);
executeSqlFile
(
"
$projectPath
/
$projectdir
/init-skills.sql"
,
$conn
);
executeSqlFile
(
"
$projectPath
/
$projectdir
/init-workflow.sql"
,
$conn
);
// load each .tmpl template file of each project
$filenames
=
scandir
(
"
$projectPath
/
$projectdir
"
);
...
...
init-db-schema.sql
View file @
d14a7397
This diff is collapsed.
Click to expand it.
projects/Headwork/init-skills.sql
0 → 100644
View file @
d14a7397
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'
);
projects/disabled/spipoll/init-skills.sql
0 → 100644
View file @
d14a7397
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment