Created
November 23, 2011 13:32
-
-
Save axelhzf/1388669 to your computer and use it in GitHub Desktop.
Crear usuario en el AED y asignarle acceso a un procedimiento
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set @nombre="NOMBRE"; | |
set @procedimiento="ID_PROC"; | |
set @password="PASSWORD"; | |
insert into eadmon_seguridad.users values (@nombre, concat(@nombre,@password), true); | |
insert into eadmon_seguridad.usuario(usuario, nombre, apellidos) values (@nombre, @nombre, @nombre); | |
insert into eadmon_seguridad.rol values (@nombre, 'ROLE_AED_GESTOR'); | |
insert into eadmon_seguridad.rol values (@nombre, 'ROLE_BDPROC_GESTOR'); | |
insert into eadmon_seguridad.rol values (@nombre, 'ROLE_TIPODOC_GESTOR'); | |
insert into eadmon_procedimientos.departamentos values (@nombre, @nombre); | |
insert into eadmon_procedimientos.departamento_seguridad(id_departamento) values (@nombre); | |
insert into eadmon_procedimientos.departamentos2procedimiento_en | |
select @procedimiento, id, 0 from eadmon_procedimientos.departamento_seguridad where id_departamento = @nombre; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[ ] -
[ ]
`)