Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table prefix #15

Closed
carono opened this issue Mar 6, 2018 · 3 comments
Closed

Table prefix #15

carono opened this issue Mar 6, 2018 · 3 comments
Assignees
Labels

Comments

@carono
Copy link

carono commented Mar 6, 2018

I have a prefix of the tables 'tablePrefix' => 'fd0_' (connection settings), when creating a new migration through this module, $this-> createTable('{{%fd0_user}}' is created, and when used, the table fd0_fd0_user is created.
I can use useTablePrefix = 0, but this is not a solution.
Is it possible to delete the prefix from the migration to get $this-> createTable ('{{% user}}'?

У меня есть префикс таблиц 'tablePrefix' => 'fd0_' (настройках коннекта), при создании новой миграции через этот модуль, создаётся $this->createTable('{{%fd0_user}}', и при применении, создаётся таблица fd0_fd0_user. 
Я могу использовать useTablePrefix=0, но это не решение проблемы.
Есть возможность удалять префикс из миграции, чтобы получить $this->createTable('{{%user}}' ?
@bizley
Copy link
Owner

bizley commented Mar 6, 2018

Thank you for pointing that out. It's a bug. I will prepare fix.

@bizley bizley self-assigned this Mar 6, 2018
@bizley bizley added the bug label Mar 6, 2018
@bizley
Copy link
Owner

bizley commented Mar 6, 2018

Fixed in version 2.2.2.

@bizley bizley closed this as completed Mar 6, 2018
@carono
Copy link
Author

carono commented Mar 6, 2018

It works, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants