NAME¶
cta-catalogue-schema-set-production --- Mark the CTA Catalogue as \"in production\", to prevent accidentally dropping the schema
SYNOPSIS¶
cta-catalogue-schema-set-production databaseConnectionFile [--help]
DESCRIPTION¶
cta-catalogue-schema-set-production sets the IS_PRODUCTION flag on the CTA_CATALOGUE table in the CTA Catalogue database. This prevents cta-catalogue-schema-drop from dropping the schema, protecting the schema from accidental deletion due to misconfiguation or human error.
By design, there is no tool to unset the IS_PRODUCTION flag. It can only be unset by running an SQL UPDATE statement directly on the CTA_CATALOGUE table.
databaseConnectionFile is the path to the configuration file containing the connection details of the CTA Catalogue database.
OPTIONS¶
- -h, --help
-
Display command options and exit.
EXIT STATUS¶
cta-catalogue-schema-set-production returns 0 on success.
EXAMPLE¶
cta-catalogue-set-production /etc/cta/cta-catalogue.conf
SEE ALSO¶
cta-catalogue-schema-drop(1cta)
CERN Tape Archive documentation https://eoscta.docs.cern.ch/
COPYRIGHT¶
Copyright © 2024 CERN. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. In applying this licence, CERN does not waive the privileges and immunities granted to it by virtue of its status as an Intergovernmental Organization or submit itself to any jurisdiction.