流明在迁移时不使用正确的数据库目录

时间:2017-02-10 17:08:57

标签: laravel lumen

当我尝试创建数据库迁移时,在Lumen中,工匠尝试将迁移文件存储在my-project / database文件夹中,这会导致错误,因为Lumen中的迁移文件夹位于my-project / model / migration下。那么为什么工匠不使用Lumen迁移文件夹。

1 个答案:

答案 0 :(得分:0)

正如您所说,Warning:com.fasterxml.jackson.databind.ext.DOMSerializer: can't find referenced class org.w3c.dom.bootstrap.DOMImplementationRegistry Warning:com.fasterxml.jackson.databind.ext.Java7SupportImpl: can't find referenced class java.beans.Transient Warning:com.fasterxml.jackson.databind.ext.Java7SupportImpl: can't find referenced class java.beans.ConstructorProperties Warning:com.fasterxml.jackson.databind.ext.Java7SupportImpl: can't find referenced class java.nio.file.Path Warning:com.fasterxml.jackson.databind.ext.Java7SupportImpl: can't find referenced class java.beans.Transient Warning:com.fasterxml.jackson.databind.ext.Java7SupportImpl: can't find referenced class java.beans.ConstructorProperties Warning:com.fasterxml.jackson.databind.ext.Java7SupportImpl: can't find referenced class java.beans.Transient Warning:com.fasterxml.jackson.databind.ext.Java7SupportImpl: can't find referenced class java.beans.ConstructorProperties Warning:com.fasterxml.jackson.databind.ext.Java7SupportImpl: can't find referenced class java.beans.Transient Warning:com.fasterxml.jackson.databind.ext.Java7SupportImpl: can't find referenced class java.beans.ConstructorProperties Warning:com.fasterxml.jackson.databind.ext.NioPathDeserializer: can't find referenced class java.nio.file.Path Warning:com.fasterxml.jackson.databind.ext.NioPathDeserializer: can't find referenced class java.nio.file.Paths Warning:com.fasterxml.jackson.databind.ext.NioPathDeserializer: can't find referenced class java.nio.file.Path Warning:com.fasterxml.jackson.databind.ext.NioPathSerializer: can't find referenced class java.nio.file.Path Warning:there were 26 unresolved references to classes or interfaces. Warning:Exception while processing task java.io.IOException: Please correct the above warnings first. Error:Execution failed for task':app:transformClassesAndResourcesWithProguardForRelease'.> Job failed, see logs for details Information:BUILD FAILED Information:Total time: 17.808 secs Information:1 error Information:16 warnings 尝试将迁移存储在lumen内,这是预期的行为,并且是按设计进行的。

如果您想要证明,请点击此处:

  

https://lumen.laravel.com/docs/5.4/database#migrations

它已经声明它使用了laravel类型的迁移行为。

因此,如果您想使用默认标准创建和运行迁移,则必须尝试维护结构,如果在不久的将来您希望从流明迁移到laravel,这将是很好的。

你也说过流明的迁移在database/migrations内。设计从未出现过。您可能已经更改了迁移的文件夹结构。

想要证明:

  

https://github.com/laravel/lumen/tree/master/database/migrations

     

https://github.com/laravel/lumen/tree/5.0/database/migrations

     

https://github.com/laravel/lumen/tree/5.2/database/migrations

     

https://github.com/laravel/lumen/tree/5.3/database/migrations

希望它可以清除你的困惑。