Remove to long index (#462)
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
This commit is contained in:
@@ -79,7 +79,6 @@ import com.google.common.collect.Lists;
|
||||
@Index(name = "sp_idx_target_02", columnList = "tenant,name"),
|
||||
@Index(name = "sp_idx_target_03", columnList = "tenant,controller_id,assigned_distribution_set"),
|
||||
@Index(name = "sp_idx_target_04", columnList = "tenant,created_at"),
|
||||
@Index(name = "sp_idx_target_05", columnList = "tenant,address"),
|
||||
@Index(name = "sp_idx_target_prim", columnList = "tenant,id") }, uniqueConstraints = @UniqueConstraint(columnNames = {
|
||||
"controller_id", "tenant" }, name = "uk_tenant_controller_id"))
|
||||
// exception squid:S2160 - BaseEntity equals/hashcode is handling correctly for
|
||||
|
||||
@@ -27,6 +27,5 @@ ALTER TABLE sp_target
|
||||
|
||||
ALTER TABLE sp_target_info DROP CONSTRAINT fk_targ_stat_targ;
|
||||
ALTER TABLE sp_target_info DROP INDEX sp_idx_target_info_02;
|
||||
CREATE INDEX sp_idx_target_05 ON sp_target (tenant,address);
|
||||
|
||||
DROP TABLE sp_target_info;
|
||||
@@ -12,7 +12,6 @@ SET t.install_date = i.install_date, t.address = i.address,t.last_target_query =
|
||||
t.installed_distribution_set = i.installed_distribution_set;
|
||||
|
||||
ALTER TABLE sp_target_info DROP INDEX sp_idx_target_info_02;
|
||||
CREATE INDEX sp_idx_target_05 ON sp_target (tenant,address);
|
||||
|
||||
ALTER TABLE sp_target_attributes DROP FOREIGN KEY fk_targ_attrib_target;
|
||||
ALTER TABLE sp_target_attributes
|
||||
|
||||
Reference in New Issue
Block a user