Add support for SQL Server 2014

XMLWordPrintable

      We were using the previous version of SQL server 2014 with both Jira and Stash. The evaluation expired so we updated to CTP2. Jira didn't have any issues with being attached to the new instance. Stash on the other hand has the following error.

      Caused by: org.hibernate.HibernateException: Wrong column type in stash.dbo.app_property for column prop_key. Found: nvarchar, expected: varchar(255)
      at org.hibernate.mapping.Table.validateColumns(Table.java:373) ~[hibernate-core-4.2.3.Final.jar:4.2.3.Final]
      at org.hibernate.cfg.Configuration.validateSchema(Configuration.java:1284) ~[hibernate-core-4.2.3.Final.jar:4.2.3.Final]
      at org.hibernate.tool.hbm2ddl.SchemaValidator.validate(SchemaValidator.java:155) ~[hibernate-core-4.2.3.Final.jar:4.2.3.Final]
      at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:508) ~[hibernate-core-4.2.3.Final.jar:4.2.3.Final]
      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1769) ~[hibernate-core-4.2.3.Final.jar:4.2.3.Final]
      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1840) ~[hibernate-core-4.2.3.Final.jar:4.2.3.Final]
      at org.springframework.orm.hibernate4.LocalSessionFactoryBuilder.buildSessionFactory(LocalSessionFactoryBuilder.java:247) ~[spring-orm-3.2.3.RELEASE.jar:3.2.3.RELEASE]
      at org.springframework.orm.hibernate4.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:373) ~[spring-orm-3.2.3.RELEASE.jar:3.2.3.RELEASE]
      at com.atlassian.stash.internal.hibernate.ExtendedLocalSessionFactoryBean.buildSessionFactory(ExtendedLocalSessionFactoryBean.java:90) ~[stash-dao-impl-2.7.2.jar:na]
      at org.springframework.orm.hibernate4.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:358) ~[spring-orm-3.2.3.RELEASE.jar:3.2.3.RELEASE]
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1541) ~[spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1479) ~[spring-beans-3.2.3.RELEASE.jar:3.2.3.RELEASE]
      ... 92 common frames omitted

            Assignee:
            Unassigned
            Reporter:
            Neil Bartkus
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: