Skip to content

Instantly share code, notes, and snippets.

@axelhzf
Created November 23, 2011 13:32
Show Gist options
  • Save axelhzf/1388669 to your computer and use it in GitHub Desktop.
Save axelhzf/1388669 to your computer and use it in GitHub Desktop.
Crear usuario en el AED y asignarle acceso a un procedimiento
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;
@shaun93
Copy link

shaun93 commented May 28, 2016

  • [ ]

[ ] -

[ ]

  • [1. ](`

# url

`)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment