We are upgrading from 5.0.1 to 5.1.2 and receive an error when the database is initialized. The following is set within the management.properties to perform the initialization:
cas.serviceRegistry.jpa.ddlAuto=create
cas.serviceRegistry.initFromJson=true
We are using mssql-jdbc version 6.2.0.jre8 and get the following error:
Hibernate: create table SamlRegisteredService_AttributeNameFormats (SamlRegisteredService_id bigint not null, value varchar(255), key varchar(255) not null, primary key (SamlRegisteredService_id, key))
2017-07-31 14:28:51,031 WARN [org.hibernate.tool.schema.internal.ExceptionHandlerLoggedImpl] - <GenerationTarget encountered exception accepting command : Error executing DDL via JDBC Statement>
org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL via JDBC Statement
Is SamlRegisteredService_AttributeNameFormats a new table?
Is this table required?
Thanks for any insight into this!!
Thanks Gary
.
cas.serviceRegistry.jpa.properties.hibernate.globally_quoted_identifiers=true
create table `SamlRegisteredService_AttributeNameFormats` (
`SamlRegisteredService_id` bigint not null,
`value` varchar(255),
`key` varchar(255) not null,
primary key (`SamlRegisteredService_id`, `key`)
) engine=InnoDB