--=_3a2650e5-0f37-4517-8bfb-2025d36037dc
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Hi,
I would like to introduce a change to two tables in oVirt-engine-core.
The VM and VM-template share most of their configuration.
I am looking to unify the two tables into one table.
Currently, if such a change would be made in the DB layer, it would be
abstracted by the DAL so no code beyond that layer should be affected,
and code changes to that layer should be minimal (since we use views and
stored procedures to abstract the DB structure anyway).
The major change would be at the DB layer, which will mostly require
data migration and changing of the STPs.
If anyone has PostgresSQL knowledge and would like to pitch in and help
me push this change it would be great.
I have more technical details if anyone is interested.
Attached is the diff between both tables (vm_static and vm_templates).
Regards,
Mike
--=_3a2650e5-0f37-4517-8bfb-2025d36037dc
Content-Type: text/x-patch; name=vm.template.tables.diff
Content-Disposition: attachment; filename=vm.template.tables.diff
Content-Transfer-Encoding: base64
Miw0YzIsNQo8IGNoaWxkX2NvdW50IGludGVnZXIgTk9UIE5VTEwgREVGQVVMVCAwLAo8IENPTlNU
UkFJTlQgcGtfdm1fdGVtcGxhdGVzIFBSSU1BUlkgS0VZICh2bXRfZ3VpZCksCjwgQ09OU1RSQUlO
VCB2ZHNfZ3JvdXBzX3ZtX3RlbXBsYXRlcyBGT1JFSUdOIEtFWSAodmRzX2dyb3VwX2lkKSBSRUZF
UkVOQ0VTIHZkc19ncm91cHMgKHZkc19ncm91cF9pZCkgTUFUQ0ggU0lNUExFIE9OIFVQREFURSBO
TyBBQ1RJT04gT04gREVMRVRFIE5PIEFDVElPTgotLS0KPiBDT05TVFJBSU5UIGZrX3Zkc19zdGF0
aWNfdm1fc3RhdGljIEZPUkVJR04gS0VZIChkZWRpY2F0ZWRfdm1fZm9yX3ZkcykgUkVGRVJFTkNF
UyB2ZHNfc3RhdGljICh2ZHNfaWQpIE1BVENIIFNJTVBMRSBPTiBVUERBVEUgTk8gQUNUSU9OIE9O
IERFTEVURSBOTyBBQ1RJT04sCj4gQ09OU1RSQUlOVCBwa192bV9zdGF0aWMgUFJJTUFSWSBLRVkg
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