sql Criando umnovousuário来自sql no Magento

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql Criando umnovousuário来自sql no Magento相关的知识,希望对你有一定的参考价值。

INSERT INTO admin_user SELECT
	NULL `user_id`,
	"Firstname" `firstname`,
	"Lastname" `lastname`,
	"newuser@test.com.br" `email`,
	"suporte" `username`,
	md5('suporte') `password`,
	NOW() `created`,
	NULL `modified`,
	NULL `logdate`,
	0 `lognum`,
	0 `reload_acl_flag`,
	1 `is_active`,
	NULL `extra`,
	NULL `rp_token`,
	NOW() `rp_token_created_at`
;

INSERT INTO admin_role SELECT
	NULL `role_id`,
	(SELECT `role_id` FROM admin_role WHERE `role_name` = 'Administrators') `parent_id`,
	2 `tree_level`,
	0 `sort_order`,
	'U' `role_type`,
	(SELECT `user_id` FROM admin_user WHERE `username` = 'suporte') `user_id`,
	'suporte' `role_name`
;

以上是关于sql Criando umnovousuário来自sql no Magento的主要内容,如果未能解决你的问题,请参考以下文章

javascript criando下标graphql

php Criando suas没有Codeigniter

powershell Criando服务申请做国家服务

text Criando tipo enum没有graphql

javascript Criando变异e解析器graphql

markdown Criando uma diretiva:输入e属性绑定