Giter Site home page Giter Site logo

Comments (6)

casatwy avatar casatwy commented on July 29, 2024

你下断点的话,能跑到这行代码吗?

如果没有跑到的话,可能你migration配置有问题,可以参考readme里面关于migration的Quick Try

from ctpersistance.

03128crz avatar 03128crz commented on July 29, 2024

直接运行项目的TestCase哦

from ctpersistance.

casatwy avatar casatwy commented on July 29, 2024

我当时测试的migration代码其实已经删掉了,你的测试方案是什么?

from ctpersistance.

03128crz avatar 03128crz commented on July 29, 2024

看readme里的说明,只要类符合说明,并且有建立了相应的plist文件,只要任意一个TestCase运行了,migration就由框架自动运行,难道我理解错了?

from ctpersistance.

casatwy avatar casatwy commented on July 29, 2024

你这部分理解得没错。还有另一部分,migration会根据versiontable中的数据来决定是否要进行migrate,而不是去比对每个表的差异而决定是否进行migrate。

所以如果正常跑testcase,是不会跑到migration的,你要想测试migration,就要先修改versiontable中的版本

from ctpersistance.

03128crz avatar 03128crz commented on July 29, 2024

总算弄清楚了,目前在理解代码中,希望以后有机会提PR,做点贡献 :)

from ctpersistance.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.