Skip to contents

Creates a new collection for an artist with default settings. Collections are containers for grouping related artworks (series, projects, etc.).

This function creates records in both collection_index and collection_settings tables atomically. The settings row ensures visibility queries work correctly for new collections.

Usage

addCollection(artist, collection_name, cn = NULL, is_test = FALSE)

Arguments

artist

Artist UUID (owner of the collection)

collection_name

Display name for the collection

cn

Database connection. If NULL, opens and closes automatically.

is_test

If TRUE, generates a test UUID (for testing only)

Value

Collection UUID (character) on success. Use this UUID for subsequent artwork assignments.