Given a name and an ID for that facility in the facilities_attributes
table, insert a new record into the names
table.
Usage
insert_name(
new_name = NULL,
role = c("alternate", "primary"),
facilities_attributes_id = NULL,
test_db = FALSE
)
Arguments
- new_name
The name of the facility that is being added.
- role
Is this an alternate name for the facility, or its primary name? Defaults to alternate.
- facilities_attributes_id
The matching ID in the
facilities_attributes
table for the facility whose name is being supplied.- test_db
Is this connection to the test database (
TRUE
) or not (FALSE
)? Defaults toFALSE
.