我使用分支(报告)中的计划文件部署了一个数据库。我的老板对 master 分支进行了一些更改。我需要测试对掌握的上述更改。我的本地已经过时了,因为我将 master 中的所有更改都拉到了本地机器中。我在主分支中尝试了以下操作。
fifthgear % sqitch deploy fifthgear
Nothing to deploy (up-to-date)
然后我尝试了;
fifthgear % sqitch revert fifthgear
Revert all changes from fifthgear? [Yes] Yes
Change "sales_data" required by currently deployed change: adi-etl-swtraders:sales_data@v1.0.0
Change "sales_purchasing_data" required by currently deployed change: adi-etl-swtraders:purchasing_data@v1.0.0
Change "sales_data_customers" required by currently deployed change: adi-etl-swtraders:customers@v1.0.0.....
之后我累了;
fifthgear % sqitch rebase fifthgear
Revert all changes from fifthgear? [Yes] yes
Change "sales_data" required by currently deployed change: adi-etl-swtraders:sales_data@v1.0.0
Change "sales_purchasing_data" required by currently deployed change: adi-etl-swtraders:purchasing_data@v1.0.0
Change "sales_data_customers" required by currently deployed change: adi-etl-swtraders:customers@v1.0.0......
在我看来,有依赖于这个主数据库的依赖数据库,这阻止了我重新定位或恢复第五档。如何接受在不同分支中进行的新更改?
此外,将
sqitch rework fifthgear
在这种情况下是一个有用的选择。