Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SUPERGEEKS-SQL
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Finlay White
SUPERGEEKS-SQL
Commits
afdfdb2e
Commit
afdfdb2e
authored
1 year ago
by
Finlay White
Browse files
Options
Downloads
Patches
Plain Diff
check review bugs fixed
parent
defe3a48
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
createdb.sql
+3
-5
3 additions, 5 deletions
createdb.sql
with
3 additions
and
5 deletions
createdb.sql
+
3
−
5
View file @
afdfdb2e
...
...
@@ -362,10 +362,8 @@ BEGIN
concat
(
"needs redoing in the before"
,
DBSdue
)))
as
"dbs refiew"
,
if
(
date_sub
(
SGdue
,
interval
6
month
)
>
CURDATE
()
=
1
,
"ALL GOOD"
,
if
(
CURDATE
()
>
DBSdue
=
1
,
concat
(
"already Due "
,
fname
,
" does not have a valid SG check"
)
concat
(
"needs redoing in the before"
,
SGdue
)))
as
"SuperGeeks training reviewz"
if
(
CURDATE
()
>
SGdue
=
1
,
concat
(
"already Due "
,
fname
,
" does not have a valid SG check"
),
concat
(
"needs redoing in the before"
,
SGdue
)))
as
"SuperGeeks training reviewz"
from
volunteers
where
date_sub
(
DBSdue
,
interval
6
month
)
<
CURDATE
()
=
1
or
date_sub
(
SGdue
,
interval
6
month
)
<
CURDATE
()
=
1
;
END
$$
...
...
@@ -396,7 +394,7 @@ call addBadge("real badge","this is a totally real badge");
call
addStudent
(
"timothy"
,
"jones"
,
'2002-2-11'
,
'8e301d6e513165a9c0b6b9a2b10c8305'
,
"EXTREMELYSTRONGPASSWORD"
);
call
addVolunteer
(
"timothy"
,
"jones"
,
'bob@bbc.co.uk'
,
'8e301d6e513165a9c0b6b9a2b10c8305'
,
"0777008913"
);
call
updateSG
(
'419fd9859978a9bf79df4ff16c99c5f9'
,
"20
15
-0
9
-09"
);
call
updateSG
(
'419fd9859978a9bf79df4ff16c99c5f9'
,
"20
20
-0
4
-09"
);
call
updateDBS
(
'419fd9859978a9bf79df4ff16c99c5f9'
,
"2021-09-09"
);
call
viewCheckExpiries
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment