aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean <sb.groenenboom@student.avans.nl>2023-03-24 14:07:58 +0100
committerSean <sb.groenenboom@student.avans.nl>2023-03-24 14:07:58 +0100
commit3199b9ebfa707068fd2c901276e663b660d1a050 (patch)
treeeab034823fb94a5b749456925706becdf7c60214
parenta48660843cc0191b62865b54f29bd9b230589a5e (diff)
Update procedures.sql
-rw-r--r--dbinit/procedures.sql11
1 files changed, 11 insertions, 0 deletions
diff --git a/dbinit/procedures.sql b/dbinit/procedures.sql
index b6b0042..73627c2 100644
--- a/dbinit/procedures.sql
+++ b/dbinit/procedures.sql
@@ -10,3 +10,14 @@ create procedure spUpdateFlags(imgPath varchar(255))
where `B`.`ID` = `A`.`ID`);
end$$
delimiter ;
+
+drop procedure if exists spDeleteFlags;
+
+delimiter $$
+create procedure spDeleteFlags()
+ begin
+ update `nationality`
+ set `nationality`.`flag` = NULL
+ where `nationality`.`flag` is not NULL
+ end$$
+delimiter ;