4

我在我的项目中使用phinx,我正在尝试更改 的架构 default_migration_table,如下所示:

environments:
    default_migration_table: mySchema.phinxlog #default schema is public
    default_database: development
...

但它失败了:

[PDOException]                                                                             
  SQLSTATE[42P01]: Undefined table: 7 ERROR:  relation "mySchema.phinxlog" does not exist  
  LINE 1: SELECT * FROM mySchema.phinxlog ORDER BY version ASC                             
                        ^                                                                    

如果我phinxlog在其中创建表mySchema可以正常工作,但最好是 phinx 自动在我的模式中创建表。
是否有一些设置可以做到这一点?

4

1 回答 1

0

删除“mySchema”。来自 mysSchema.phinxlog - 它应该只是 phinxlog (或任何你想称之为的)。

于 2015-01-03T16:43:36.617 回答