mirror of
https://github.com/opelly27/WinStudentGoalTracker.git
synced 2026-05-20 02:57:36 +00:00
Latest
This commit is contained in:
@@ -2,6 +2,7 @@ DELIMITER ;;
|
||||
CREATE DEFINER=`root`@`%` PROCEDURE `sp_Student_Insert`(
|
||||
IN p_id_student CHAR(36),
|
||||
IN p_id_program CHAR(36),
|
||||
IN p_id_user CHAR(36),
|
||||
IN p_identifier VARCHAR(50),
|
||||
IN p_program_year INT,
|
||||
IN p_enrollment_date DATE,
|
||||
@@ -12,6 +13,7 @@ BEGIN
|
||||
(
|
||||
id_student,
|
||||
id_program,
|
||||
id_user,
|
||||
identifier,
|
||||
program_year,
|
||||
enrollment_date,
|
||||
@@ -22,31 +24,17 @@ BEGIN
|
||||
(
|
||||
p_id_student,
|
||||
p_id_program,
|
||||
p_id_user,
|
||||
p_identifier,
|
||||
p_program_year,
|
||||
p_enrollment_date,
|
||||
p_expected_grad,
|
||||
UTC_TIMESTAMP()
|
||||
);
|
||||
|
||||
INSERT INTO user_student
|
||||
(
|
||||
id_user_student,
|
||||
id_user,
|
||||
id_student,
|
||||
is_primary
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
UUID(),
|
||||
p_id_user,
|
||||
p_id_student,
|
||||
1
|
||||
);
|
||||
|
||||
SELECT
|
||||
id_student,
|
||||
id_program,
|
||||
id_user,
|
||||
identifier,
|
||||
program_year,
|
||||
enrollment_date,
|
||||
|
||||
Reference in New Issue
Block a user