[ 1638040 ] 2pack pk_name do not nesseary in detail and change to Name

This commit is contained in:
vpj-cd 2007-01-17 21:21:57 +00:00
parent 1179079fb3
commit a18373e5a9
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ DELETE FROM ad_changelog WHERE AD_Column_ID=50126 AND AD_TABLE_ID=50006;
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=50126; DELETE FROM AD_Column_Trl WHERE AD_Column_ID=50126;
DELETE FROM AD_Column WHERE AD_Column_ID=50126 AND AD_TABLE_ID=50006; DELETE FROM AD_Column WHERE AD_Column_ID=50126 AND AD_TABLE_ID=50006;
--Set PK_Name AS REference to Table Header --Set PK_Name AS REference to Table Header
UPDATE AD_Column SET isidentifier='Y', seqno= 1 WHERE AD_Column_ID=50086 UPDATE AD_Column SET isidentifier='Y', seqno= 1 WHERE AD_Column_ID=50086;
ALTER TABLE ad_package_exp_detail DROP COLUMN pk_name; ALTER TABLE ad_package_exp_detail DROP COLUMN pk_name;
ALTER TABLE ad_package_exp RENAME COLUMN pk_name TO name; ALTER TABLE ad_package_exp RENAME COLUMN pk_name TO name;
UPDATE AD_Column SET AD_Element_ID=469, COLUMNNAME='Name' ,Name='Name' WHERE AD_Column_ID=50086; UPDATE AD_Column SET AD_Element_ID=469, COLUMNNAME='Name' ,Name='Name' WHERE AD_Column_ID=50086;
@ -16,3 +16,4 @@ ALTER TABLE ad_package_exp_common RENAME COLUMN pk_name TO name;
UPDATE Ad_column SET ad_Element_ID=469, columnname='Name' ,name='Name' WHERE AD_Column_ID=50146; UPDATE Ad_column SET ad_Element_ID=469, columnname='Name' ,name='Name' WHERE AD_Column_ID=50146;
DELETE FROM ad_element_trl WHERE ad_element_ID=50021; DELETE FROM ad_element_trl WHERE ad_element_ID=50021;
DELETE FROM ad_element WHERE ad_element_ID=50021; DELETE FROM ad_element WHERE ad_element_ID=50021;
COMMIT;

View File

@ -85,7 +85,6 @@ public class MPackageExp extends X_AD_Package_Exp
PackDetail.setAD_Client_ID(PackSummary.getAD_Client_ID()); PackDetail.setAD_Client_ID(PackSummary.getAD_Client_ID());
PackDetail.setAD_Org_ID(PackSummary.getAD_Org_ID()); PackDetail.setAD_Org_ID(PackSummary.getAD_Org_ID());
PackDetail.setAD_Package_Exp_ID(getAD_Package_Exp_ID()); PackDetail.setAD_Package_Exp_ID(getAD_Package_Exp_ID());
PackDetail.setPK_Name(PackSummary.getPK_Name());
PackDetail.setType(rs.getString("TYPE")); PackDetail.setType(rs.getString("TYPE"));
PackDetail.setFileName(rs.getString("FILENAME")); PackDetail.setFileName(rs.getString("FILENAME"));
PackDetail.setDescription(rs.getString("DESCRIPTION")); PackDetail.setDescription(rs.getString("DESCRIPTION"));