doulun0651 2014-07-11 00:10
浏览 45
已采纳

yii用户和权限扩展安装在postgresql上

I have installed users and rights extension of Yii framework and It is working properly.
I want to migrate to postgresql. The rights extension has mysql and sqlite import files (schema.mysql.sql and schema.sqlite.sql files), but It has not postgresql import file. How can I create rights and users tables in my postgresql db?
should I create the tables by hand?

  • 写回答

1条回答 默认 最新

  • duandui5648 2014-07-19 04:16
    关注

    I created the tables by hand and It worked properly, but I needed to exchange some code under protected/modules/rights/components/RDbAuthManager.php.
    I replaced these fields in the sql queries in RDbAuthManager class:

    $itemTable = $this->db->quoteTableName($this->itemTable);
    $rightsTable = $this->db->quoteTableName($this->rightsTable);
    $assignmentTable = $this->db->quoteTableName($this->assignmentTable);
    $itemChildTable = $this->db->quoteTableName($this->itemChildTable);
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部