how to translate {{%migtrate}} to real table name?

inside migration script, I try to get migrationTable name, programatically




Yii::$app->controller->migrationTable



but the value is quoted , i.e. {{%migrate}}

% means table prefix

how do I translate that into a real string name representing migration table?

what for you need the table name ?

that string is the name of the migration table but using prefix syntax.

see quoting-table-and-column-names

this way


\Yii::$app->db->schema->getRawTableName(Yii::$app->controller->migrationTable);



Thank you Bushi.

I have to alter every table (around 30) pragmatically(e.g. to attach access time-stamp field) , and I need to bypass Yii2 specific tables, such as migration and RBAC.