-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ODBC: Replace om_copy_element()
- drupal module function to create a copy of a nested property object
#435
Comments
Test with
|
Test that ptemp has all the data it needs:
|
rburghol
changed the title
ODBC: Replace Jan 3, 2025
om_copy_element()
: drupal module function to create a copy of a nested property objectom_copy_element()
- drupal module function to create a copy of a nested property object
"Reservoir Operations" Get root_pid by propname and parent
Set up arguments
|
Verify data matrix copying
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See also: #434
Tagging @COBrogan @BrendanBrogan @gmahadwar
See also, saving models from VAHydro to om #446
pid = 7692137
dh_properties
, preserving a list of the new pids, and previous pidsfeatureid
for all new elements with the newpid
corresponding with the old oneclone_pid
indh_properties
to stash the original pid when cloning?alter table dh_properties add column clone_pid bigint;
src_pid
as map to update featureids, where we use aRETURNING src_pid, pid
in the statement that inserts the clone intodh_properties
Shell Script
om_copy_element
Uses SQLom_copy_property src_entity_type src_featureid dest_entity_type dest_featureid propname[propname|newname] [include_children=1] [overwrite=0] [debug=0]
om_copy_property dh_properties 6403272 dh_properties 4823737 available_mgd 1 1
SQL Development
Get root_pid by propname and parent
Set up arguments
Do the base copy
The text was updated successfully, but these errors were encountered: