Martin Mucha has posted comments on this change.

Change subject: engine: Add NetworkAttachment dao
......................................................................


Patch Set 19:

(2 comments)

https://gerrit.ovirt.org/#/c/32581/19/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/network/NetworkAttachmentDaoDbFacadeImpl.java
File 
backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/network/NetworkAttachmentDaoDbFacadeImpl.java:

Line 42:     protected MapSqlParameterSource 
createFullParametersMapper(NetworkAttachment networkAttachment) {
Line 43:         MapSqlParameterSource mapper = 
createIdParameterMapper(networkAttachment.getId())
Line 44:                 .addValue("network_id", 
networkAttachment.getNetworkId())
Line 45:                 .addValue("nic_id", networkAttachment.getNicId())
Line 46:                 .addValue("custom_properties",
> Please add a separate table for custom properties (table columns- network_a
upgrade script is not very trivial, so it'll be done later in separate 
patch.Done
Line 47:                         
SerializationFactory.getSerializer().serialize(networkAttachment.getProperties()));
Line 48: 
Line 49:         IpConfiguration ipConfiguration = 
networkAttachment.getIpConfiguration();
Line 50:         if (ipConfiguration == null) {


https://gerrit.ovirt.org/#/c/32581/19/packaging/dbscripts/upgrade/03_06_1170_add_network_attachment.sql
File packaging/dbscripts/upgrade/03_06_1170_add_network_attachment.sql:

Line 12:   gateway CHARACTER VARYING(20),
Line 13:   custom_properties TEXT,
Line 14:   _create_date TIMESTAMP WITH TIME ZONE DEFAULT 
('now'::text)::timestamp without time zone,
Line 15:   _update_date TIMESTAMP WITH TIME ZONE,
Line 16:   FOREIGN KEY (network_id) REFERENCES network(id) ON DELETE CASCADE,
> Since currently the old setup networks is used by RemoveNetworkCommand and 
Done
Line 17:   FOREIGN KEY (nic_id) REFERENCES vds_interface(id) ON DELETE SET NULL
Line 18: );
Line 19: 
Line 20: CREATE INDEX IDX_network_attachments_nic_id ON 
network_attachments(nic_id);


-- 
To view, visit https://gerrit.ovirt.org/32581
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I84187f3900b9e3f8a917fc4e4126de9e50e231b4
Gerrit-PatchSet: 19
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Moti Asayag <[email protected]>
Gerrit-Reviewer: Alona Kaplan <[email protected]>
Gerrit-Reviewer: Eli Mesika <[email protected]>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Martin Mucha <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to