Fix URL length to 2048 for all url fields in VO

This commit is contained in:
Marc-Aurèle Brothier 2016-05-27 08:16:05 +02:00
parent 88cd182272
commit a59ee03fd7
12 changed files with 15 additions and 13 deletions

View File

@ -329,7 +329,7 @@ public class EngineHostVO implements EngineHost, Identity {
@Column(name = "cpus")
private Integer cpus;
@Column(name = "url")
@Column(name = "url", length = 2048)
private String storageUrl;
@Column(name = "speed")

View File

@ -337,7 +337,7 @@ public class HostVO implements Host {
@Column(name = "cpus")
private Integer cpus;
@Column(name = "url")
@Column(name = "url", length = 2048)
private String storageUrl;
@Column(name = "speed")

View File

@ -77,7 +77,7 @@ public class UploadVO implements Upload {
@Column(name = "job_id")
private String jobId;
@Column(name = "url")
@Column(name = "url", length = 2048)
private String uploadUrl;
@Column(name = "install_path")

View File

@ -84,7 +84,7 @@ public class VMTemplateHostVO implements VMTemplateStorageResourceAssoc, DataObj
@Column(name = "install_path")
private String installPath;
@Column(name = "url")
@Column(name = "url", length = 2048)
private String downloadUrl;
@Column(name = "is_copy")

View File

@ -63,7 +63,7 @@ public class VMTemplateVO implements VirtualMachineTemplate {
@Column(name = "type")
private Storage.TemplateType templateType;
@Column(name = "url")
@Column(name = "url", length = 2048)
private String url = null;
@Column(name = "hvm")

View File

@ -93,7 +93,7 @@ public class VolumeHostVO implements InternalIdentity, DataObjectInStore {
@Column(name = "install_path")
private String installPath;
@Column(name = "url")
@Column(name = "url", length = 2048)
private String downloadUrl;
@Column(name = "format")

View File

@ -51,7 +51,7 @@ public class ImageStoreVO implements ImageStore {
@Column(name = "protocol", nullable = false)
private String protocol;
@Column(name = "url", nullable = false)
@Column(name = "url", nullable = false, length = 2048)
private String url;
@Column(name = "image_provider_name", nullable = false)

View File

@ -95,10 +95,10 @@ public class TemplateDataStoreVO implements StateObject<ObjectInDataStoreStateMa
@Column(name = "install_path")
private String installPath;
@Column(name = "url")
@Column(name = "url", length = 2048)
private String downloadUrl;
@Column(name = "download_url")
@Column(name = "download_url", length = 2048)
private String extractUrl;
@Column(name = "download_url_created")

View File

@ -96,10 +96,10 @@ public class VolumeDataStoreVO implements StateObject<ObjectInDataStoreStateMach
@Column(name = "install_path")
private String installPath;
@Column(name = "url")
@Column(name = "url", length = 2048)
private String downloadUrl;
@Column(name = "download_url")
@Column(name = "download_url", length = 2048)
private String extractUrl;
@Column(name = "download_url_created")

View File

@ -78,7 +78,7 @@ public class ObjectInDataStoreVO implements StateObject<ObjectInDataStoreStateMa
@Column(name = "local_path")
String localDownloadPath;
@Column(name = "url")
@Column(name = "url", length = 2048)
private String downloadUrl;
@Column(name = "format")

View File

@ -50,7 +50,7 @@ public class ImageStoreJoinVO extends BaseViewVO implements InternalIdentity, Id
@Column(name = "name")
private String name;
@Column(name = "url")
@Column(name = "url", length = 2048)
private String url;
@Column(name = "protocol")

View File

@ -27,3 +27,5 @@ ALTER TABLE `cloud`.`image_store` MODIFY COLUMN `url` varchar(2048);
ALTER TABLE `cloud`.`template_store_ref` MODIFY COLUMN `url` varchar(2048);
ALTER TABLE `cloud`.`volume_store_ref` MODIFY COLUMN `url` varchar(2048);
ALTER TABLE `cloud`.`volume_store_ref` MODIFY COLUMN `download_url` varchar(2048);
ALTER TABLE `cloud`.`upload` MODIFY COLUMN `url` varchar(2048);
ALTER TABLE `cloud`.`host` MODIFY COLUMN `url` varchar(2048);