我正在开发一个使用Springboot、Boxfuse和Flyway的Web应用程序。我创建了以下迁移:
V10__更新属性。sql
其中包含以下内容:
ALTER TABLE property MODIFY COLUMN long_description TEXT DEFAULT '';
并将@Lob注释添加到Java属性longDescription中:
@Entity
public class Property {
private @Lob String longDescription;
// Other properties and getters and setters
}
当我在本地运行应用程序时,它就可以工作了。但当我运行boxfuse命令时:
boxfuse run -env=prod
它失败了。。。。我得到以下错误:
(调用init方法失败;嵌套异常为org.flywaydb.core.api.FlywayException:Schemaboxfuse dev db
包含到版本10的迁移失败!)
vb-18d089ff => 2017-06-21 17:04:21.747 :: Spring Boot :: (v1.4.2.RELEASE)
vb-18d089ff => 2017-06-21 17:04:21.747
vb-18d089ff => 2017-06-21 17:04:21.904 2017-06-21 16:04:21.900 INFO 713 --- [ main] co.easymatch.Em2Application : Starting Em2Application v0.7.12 on vb-18d089ff with PID 713 (/app/em2-0.7.12.jar started by root in /app)
vb-18d089ff => 2017-06-21 17:04:21.904 2017-06-21 16:04:21.904 INFO 713 --- [ main] co.easymatch.Em2Application : The following profiles are active: boxfuse
vb-18d089ff => 2017-06-21 17:04:22.123 2017-06-21 16:04:22.123 INFO 713 --- [ main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@2077d4de: startup date [Wed Jun 21 16:04:22 GMT 2017]; root of context hierarchy
vb-18d089ff => 2017-06-21 17:04:27.930 2017-06-21 16:04:27.930 INFO 713 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Overriding bean definition for bean 'scopedTarget.oauth2ClientContext' with a different definition: replacing [Root bean: class [null]; scope=session; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=false; primary=false; factoryBeanName=org.springframework.security.oauth2.config.annotation.web.configuration.OAuth2ClientConfiguration$OAuth2ClientContextConfiguration; factoryMethodName=oauth2ClientContext; initMethodName=null; destroyMethodName=(inferred); defined in org.springframework.security.oauth2.config.annotation.web.configuration.OAuth2ClientConfiguration$OAuth2ClientContextConfiguration] with [Root bean: class [null]; scope=session; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=false; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.security.oauth2.client.OAuth2RestOperationsConfiguration$SessionScopedConfiguration$ClientContextConfiguration; factoryMethodName=oauth2ClientContext; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/security/oauth2/client/OAuth2RestOperationsConfiguration$SessionScopedConfiguration$ClientContextConfiguration.class]]
vb-18d089ff => 2017-06-21 17:04:27.934 2017-06-21 16:04:27.934 INFO 713 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Overriding bean definition for bean 'oauth2ClientFilterRegistration' with a different definition: replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=em2Application; factoryMethodName=oauth2ClientFilterRegistration; initMethodName=null; destroyMethodName=(inferred); defined in co.easymatch.Em2Application] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.security.oauth2.client.OAuth2RestOperationsConfiguration$SessionScopedConfiguration; factoryMethodName=oauth2ClientFilterRegistration; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/security/oauth2/client/OAuth2RestOperationsConfiguration$SessionScopedConfiguration.class]]
vb-18d089ff => 2017-06-21 17:04:28.046 2017-06-21 16:04:28.046 INFO 713 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Overriding bean definition for bean 'ignoredPathsWebSecurityConfigurerAdapter' with a different definition: replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.security.SpringBootWebSecurityConfiguration; factoryMethodName=ignoredPathsWebSecurityConfigurerAdapter; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/security/SpringBootWebSecurityConfiguration.class]] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.actuate.autoconfigure.ManagementWebSecurityAutoConfiguration; factoryMethodName=ignoredPathsWebSecurityConfigurerAdapter; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/actuate/autoconfigure/ManagementWebSecurityAutoConfiguration.class]]
vb-18d089ff => 2017-06-21 17:04:28.353 2017-06-21 16:04:28.352 INFO 713 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Overriding bean definition for bean 'managementServletContext' with a different definition: replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.actuate.autoconfigure.EndpointWebMvcHypermediaManagementContextConfiguration; factoryMethodName=managementServletContext; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/actuate/autoconfigure/EndpointWebMvcHypermediaManagementContextConfiguration.class]] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.actuate.autoconfigure.EndpointWebMvcAutoConfiguration; factoryMethodName=managementServletContext; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/actuate/autoconfigure/EndpointWebMvcAutoConfiguration.class]]
vb-18d089ff => 2017-06-21 17:04:31.055 2017-06-21 16:04:31.034 INFO 713 --- [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
vb-18d089ff => 2017-06-21 17:04:31.321 2017-06-21 16:04:31.319 INFO 713 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [class org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$7419792e] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
vb-18d089ff => 2017-06-21 17:04:32.408 2017-06-21 16:04:32.407 INFO 713 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http)
vb-18d089ff => 2017-06-21 17:04:32.425 2017-06-21 16:04:32.425 INFO 713 --- [ main] o.apache.catalina.core.StandardService : Starting service Tomcat
vb-18d089ff => 2017-06-21 17:04:32.426 2017-06-21 16:04:32.426 INFO 713 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.6
vb-18d089ff => 2017-06-21 17:04:32.593 2017-06-21 16:04:32.592 INFO 713 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
vb-18d089ff => 2017-06-21 17:04:32.593 2017-06-21 16:04:32.592 INFO 713 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 10471 ms
vb-18d089ff => 2017-06-21 17:04:33.349 2017-06-21 16:04:33.334 WARN 713 --- [ost-startStop-1] .s.b.d.a.RemoteDevToolsAutoConfiguration : Listening for remote debug traffic on /.~~spring-boot!~/debug
vb-18d089ff => 2017-06-21 17:04:33.380 2017-06-21 16:04:33.380 WARN 713 --- [ost-startStop-1] .s.b.d.a.RemoteDevToolsAutoConfiguration : Listening for remote restart updates on /.~~spring-boot!~/restart
vb-18d089ff => 2017-06-21 17:04:33.437 2017-06-21 16:04:33.434 INFO 713 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'metricsFilter' to: [/*]
vb-18d089ff => 2017-06-21 17:04:33.437 2017-06-21 16:04:33.434 INFO 713 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*]
vb-18d089ff => 2017-06-21 17:04:33.437 2017-06-21 16:04:33.434 INFO 713 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
vb-18d089ff => 2017-06-21 17:04:33.437 2017-06-21 16:04:33.434 INFO 713 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/*]
vb-18d089ff => 2017-06-21 17:04:33.437 2017-06-21 16:04:33.434 INFO 713 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'OAuth2ClientContextFilter' to: [/*]
vb-18d089ff => 2017-06-21 17:04:33.437 2017-06-21 16:04:33.434 INFO 713 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*]
vb-18d089ff => 2017-06-21 17:04:33.437 2017-06-21 16:04:33.436 INFO 713 --- [ost-startStop-1] .s.DelegatingFilterProxyRegistrationBean : Mapping filter: 'springSecurityFilterChain' to: [/*]
vb-18d089ff => 2017-06-21 17:04:33.437 2017-06-21 16:04:33.436 INFO 713 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'webRequestLoggingFilter' to: [/*]
vb-18d089ff => 2017-06-21 17:04:33.437 2017-06-21 16:04:33.436 INFO 713 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'applicationContextIdFilter' to: [/*]
vb-18d089ff => 2017-06-21 17:04:33.437 2017-06-21 16:04:33.436 INFO 713 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'remoteDevToolsDispatcherFilter' to: [/*]
vb-18d089ff => 2017-06-21 17:04:33.437 2017-06-21 16:04:33.436 INFO 713 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Mapping servlet: 'dispatcherServlet' to [/]
vb-18d089ff => 2017-06-21 17:04:33.440 2017-06-21 16:04:33.437 INFO 713 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Mapping servlet: 'webServlet' to [/h2-console/*]
vb-18d089ff => 2017-06-21 17:04:33.934 2017-06-21 16:04:33.934 INFO 713 --- [ main] o.f.core.internal.util.VersionPrinter : Flyway 3.2.1 by Boxfuse
vb-18d089ff => 2017-06-21 17:04:34.266 2017-06-21 16:04:34.266 INFO 713 --- [ main] o.f.c.i.dbsupport.DbSupportFactory : Database: jdbc:mysql://10.0.2.2:3306/boxfuse-dev-db (MySQL 5.6)
vb-18d089ff => 2017-06-21 17:04:34.807 2017-06-21 16:04:34.807 INFO 713 --- [ main] o.f.core.internal.command.DbMigrate : Current version of schema `boxfuse-dev-db`: 10
vb-18d089ff => 2017-06-21 17:04:34.810 2017-06-21 16:04:34.810 WARN 713 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is org.flywaydb.core.api.FlywayException: Schema `boxfuse-dev-db` contains a failed migration to version 10 !
vb-18d089ff => 2017-06-21 17:04:34.819 2017-06-21 16:04:34.819 INFO 713 --- [ main] o.apache.catalina.core.StandardService : Stopping service Tomcat
vb-18d089ff => 2017-06-21 17:04:34.834 2017-06-21 16:04:34.834 WARN 713 --- [ main] o.s.boot.SpringApplication : Error handling failed (Error creating bean with name 'delegatingApplicationListener' defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration': Initialization of bean failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry' available)
vb-18d089ff => 2017-06-21 17:04:34.841 2017-06-21 16:04:34.840 ERROR 713 --- [ main] o.s.boot.SpringApplication : Application startup failed
vb-18d089ff => 2017-06-21 17:04:34.841
vb-18d089ff => 2017-06-21 17:04:34.841 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is org.flywaydb.core.api.FlywayException: Schema `boxfuse-dev-db` contains a failed migration to version 10 !
vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1583) ~[spring-beans-4.3.4.RELEASE.jar!/:4.3.4.RELEASE]
vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) ~[spring-beans-4.3.4.RELEASE.jar!/:4.3.4.RELEASE]
vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.3.4.RELEASE.jar!/:4.3.4.RELEASE]
vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.4.RELEASE.jar!/:4.3.4.RELEASE]
vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.4.RELEASE.jar!/:4.3.4.RELEASE]
vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.4.RELEASE.jar!/:4.3.4.RELEASE]
vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.4.RELEASE.jar!/:4.3.4.RELEASE]
vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:296) ~[spring-beans-4.3.4.RELEASE.jar!/:4.3.4.RELEASE]
vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.4.RELEASE.jar!/:4.3.4.RELEASE]
vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1081) ~[spring-context-4.3.4.RELEASE.jar!/:4.3.4.RELEASE]
vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:856) ~[spring-context-4.3.4.RELEASE.jar!/:4.3.4.RELEASE]
vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542) ~[spring-context-4.3.4.RELEASE.jar!/:4.3.4.RELEASE]
vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.4.2.RELEASE.jar!/:1.4.2.RELEASE]
vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761) [spring-boot-1.4.2.RELEASE.jar!/:1.4.2.RELEASE]
vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371) [spring-boot-1.4.2.RELEASE.jar!/:1.4.2.RELEASE]
vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) [spring-boot-1.4.2.RELEASE.jar!/:1.4.2.RELEASE]
vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.boot.SpringApplication.run(SpringApplication.java:1186) [spring-boot-1.4.2.RELEASE.jar!/:1.4.2.RELEASE]
vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.boot.SpringApplication.run(SpringApplication.java:1175) [spring-boot-1.4.2.RELEASE.jar!/:1.4.2.RELEASE]
vb-18d089ff => 2017-06-21 17:04:34.841 at co.easymatch.Em2Application.main(Em2Application.java:44) [classes!/:0.7.12]
vb-18d089ff => 2017-06-21 17:04:34.841 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0-8u131]
vb-18d089ff => 2017-06-21 17:04:34.841 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0-8u131]
vb-18d089ff => 2017-06-21 17:04:34.841 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0-8u131]
vb-18d089ff => 2017-06-21 17:04:34.841 at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0-8u131]
vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [em2-0.7.12.jar:0.7.12]
vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [em2-0.7.12.jar:0.7.12]
vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [em2-0.7.12.jar:0.7.12]
vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:58) [em2-0.7.12.jar:0.7.12]
vb-18d089ff => 2017-06-21 17:04:34.841 Caused by: org.flywaydb.core.api.FlywayException: Schema `boxfuse-dev-db` contains a failed migration to version 10 !
vb-18d089ff => 2017-06-21 17:04:34.841 at org.flywaydb.core.internal.command.DbMigrate$2.doInTransaction(DbMigrate.java:196) ~[flyway-core-3.2.1.jar!/:na]
vb-18d089ff => 2017-06-21 17:04:34.841 at org.flywaydb.core.internal.command.DbMigrate$2.doInTransaction(DbMigrate.java:156) ~[flyway-core-3.2.1.jar!/:na]
vb-18d089ff => 2017-06-21 17:04:34.841 at org.flywaydb.core.internal.util.jdbc.TransactionTemplate.execute(TransactionTemplate.java:72) ~[flyway-core-3.2.1.jar!/:na]
vb-18d089ff => 2017-06-21 17:04:34.841 at org.flywaydb.core.internal.command.DbMigrate.migrate(DbMigrate.java:156) ~[flyway-core-3.2.1.jar!/:na]
vb-18d089ff => 2017-06-21 17:04:34.841 at org.flywaydb.core.Flyway$1.execute(Flyway.java:1059) ~[flyway-core-3.2.1.jar!/:na]
vb-18d089ff => 2017-06-21 17:04:34.841 at org.flywaydb.core.Flyway$1.execute(Flyway.java:1006) ~[flyway-core-3.2.1.jar!/:na]
vb-18d089ff => 2017-06-21 17:04:34.841 at org.flywaydb.core.Flyway.execute(Flyway.java:1418) ~[flyway-core-3.2.1.jar!/:na]
vb-18d089ff => 2017-06-21 17:04:34.841 at org.flywaydb.core.Flyway.migrate(Flyway.java:1006) ~[flyway-core-3.2.1.jar!/:na]
vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:66) ~[spring-boot-autoconfigure-1.4.2.RELEASE.jar!/:1.4.2.RELEASE]
vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1642) ~[spring-beans-4.3.4.RELEASE.jar!/:4.3.4.RELEASE]
vb-18d089ff => 2017-06-21 17:04:34.841 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1579) ~[spring-beans-4.3.4.RELEASE.jar!/:4.3.4.RELEASE]
vb-18d089ff => 2017-06-21 17:04:34.841 ... 26 common frames omitted
我不知道迁移出了什么问题。
我甚至试过使用
ALTER TABLE property DROP COLUMN long_description;
ALTER TABLE property ADD long_description TEXT DEFAULT '';
但同样的错误也会发生。
有什么帮助吗?
显示所有Flyway数据迁移
SELECT * FROM schema_version;
然后通过删除失败的迁移
DELETE FROM schema_version WHERE version = '10';
在schema_version
表中,迁移被标记为失败。你必须发布一个飞行路线。repair()
来修复它。或者,您也可以使用Flyway删除数据库。clean()
并让它在下次调用Flyway时重新创建它。migrate()
。
请执行以下步骤: 1.debug打开; 2.把整个程序打包; 3.传到服务器; 4.数据库备份到服务器; 5.改data/conf/db.php的数据库用户名密码; 6.测试; 7.debug关闭;
我在服务器中有这个.js 在我的客户中(反应) 在我的督促下,我做了这项检查 为什么会这样呢?我不认为这是cors的问题,因为我已经做了 我的package.json
我在React本地(世博环境)导航有问题。我想使用在中的上放置一个保存按钮,但是会抛出错误消息,该消息在附加的中给出。 另外,由于这个按钮需要访问组件状态,所以我不想在外部使用 如何访问和修改组件中的标头部分?
我已成功地将spring boot配置为使用Flyway的新项目 随Postgres数据库从版本0001.0迁移到0008.0 我已在本地手动更改脚本,但flyway迁移失败。 错误消息示例: 注意:-我不想从表flyway_schema_history中删除脚本条目。
如果运行,它会失败 未找到基表或视图:1146表*.迁移不存在。 数据库是空的。 如果我运行我会看到迁移表,但它是空的。 DB显示迁移表,但它是空的。 如果我再次运行,数据库再次为空,我会得到相同的错误: 未找到基表或视图:1146表*.迁移不存在。 也许有人知道这里发生了什么。
更新时间:2019-08-31 11:22:33 服务分为生产环境与开发环境,未发布的服务认为是在开发环境,发布后的服务为生产环境的服务。生产环境的服务才可以在web工作台,或代码工程内调用。生产环境的服务不可再进行修改,需要在开发环境中修改部署发布服务后,才可生效。 服务运维监控功能是为生产环境的服务提供的,您可以在此查看生产环境服务的调用量及运行日志。