]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
Newer hyperjaxb code caused column TENANTS_ACCOUNTSCOMMON_CSID to change to TENANTS_A...
authorremillet <remillet@yahoo.com>
Fri, 26 Dec 2014 08:20:08 +0000 (00:20 -0800)
committerremillet <remillet@yahoo.com>
Fri, 26 Dec 2014 08:20:08 +0000 (00:20 -0800)
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

services/account/pstore/src/main/resources/db/postgresql/account.sql

index ad9c8585b76cdbee8e1f513efdde0fc5789b510e..bcfa115c5696b4fb4466d30f5cb8b9b5c1043b85 100644 (file)
@@ -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;