Db0014: Renaming another storedproc Role=>Position
This commit is contained in:
@@ -14,7 +14,7 @@ namespace Swarmops.Database
|
||||
/// </summary>
|
||||
public static int DbVersionExpected
|
||||
{
|
||||
get { return 13; }
|
||||
get { return 14; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -11,3 +11,4 @@
|
||||
0011 - Added tables, procedures for centralized, decentralized roles [RF]
|
||||
0012 - Renamed "Roles" to "Positions" to clarify terminology [RF]
|
||||
0013 - Added PositionTitles for organizational culture flexibility [RF]
|
||||
0014 - Forgot one storedproc in Db0012; renamed CreateAssignedRole [RF]
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
DROP procedure IF EXISTS `CreateAssignedRole`
|
||||
|
||||
|
||||
#
|
||||
|
||||
|
||||
DROP procedure IF EXISTS `CreatePositionAssignment`
|
||||
|
||||
|
||||
#
|
||||
|
||||
|
||||
CREATE PROCEDURE `CreatePositionAssignment`(
|
||||
IN organizationId INT,
|
||||
IN geographyId INT,
|
||||
IN positionId INT,
|
||||
IN personId INT,
|
||||
IN expiresDateTimeUtc DATETIME,
|
||||
IN createdDateTime DATETIME,
|
||||
IN createdByPersonId INT,
|
||||
IN createdByPositionId INT,
|
||||
IN assignmentNotes TEXT
|
||||
)
|
||||
BEGIN
|
||||
|
||||
INSERT INTO PositionsAssigned (OrganizationId,GeographyId,PositionId,PersonId,ExpiresDateTimeUtc,CreatedDateTime,CreatedByPersonId,CreatedByPositionId,AssignmentNotes)
|
||||
VALUES (organizationId, geographyId, positionId, personId, expiresDateTimeUtc, createdDateTime, createdByPersonId, createdByPositionId, assignmentNotes);
|
||||
|
||||
SELECT LAST_INSERT_ID() AS Identity;
|
||||
|
||||
END
|
||||
Reference in New Issue
Block a user