From: remillet Date: Fri, 26 Dec 2014 08:20:08 +0000 (-0800) Subject: Newer hyperjaxb code caused column TENANTS_ACCOUNTSCOMMON_CSID to change to TENANTS_A... X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=4060344f1710db3322bffc9131b50611d64e1ebc;p=tmp%2Fjakarta-migration.git Newer hyperjaxb code caused column TENANTS_ACCOUNTSCOMMON_CSID to change to TENANTS_ACCOUNTS_COMMON_CSID. Will need to add an 'alter table' command to release notes for those upgrading to v4.2. alter table accounts_tenants rename column TENANTS_ACCOUNTSCOMMON_CSID to TENANTS_ACCOUNTS_COMMON_CSID --- diff --git a/services/account/pstore/src/main/resources/db/postgresql/account.sql b/services/account/pstore/src/main/resources/db/postgresql/account.sql index ad9c8585b..bcfa115c5 100644 --- a/services/account/pstore/src/main/resources/db/postgresql/account.sql +++ b/services/account/pstore/src/main/resources/db/postgresql/account.sql @@ -4,7 +4,7 @@ DROP TABLE IF EXISTS accounts_tenants CASCADE; DROP TABLE IF EXISTS tenants CASCADE; DROP SEQUENCE IF EXISTS hibernate_sequence; create table accounts_common (csid varchar(128) not null, created_at timestamp not null, email varchar(255) not null, mobile varchar(255), person_ref_name varchar(255), phone varchar(255), screen_name varchar(128) not null, status varchar(15) not null, updated_at timestamp, userid varchar(128) not null, metadata_protection varchar(255), roles_protection varchar(255), primary key (csid)); -create table accounts_tenants (HJID int8 not null, tenant_id varchar(128) not null, TENANTS_ACCOUNTSCOMMON_CSID varchar(128), primary key (HJID)); +create table accounts_tenants (HJID int8 not null, tenant_id varchar(128) not null, TENANTS_ACCOUNTS_COMMON_CSID varchar(128), primary key (HJID)); create table tenants (id varchar(128) not null, created_at timestamp not null, name varchar(255) not null, disabled boolean not null, updated_at timestamp, primary key (id)); -alter table accounts_tenants add constraint FKFDA649B05A9CEEB5 foreign key (TENANTS_ACCOUNTSCOMMON_CSID) references accounts_common; +alter table accounts_tenants add constraint FKFDA649B05A9CEEB5 foreign key (TENANTS_ACCOUNTS_COMMON_CSID) references accounts_common; create sequence hibernate_sequence;