.\" @project The CERN Tape Archive (CTA) .\" @copyright Copyright © 2016-2022 CERN .\" @license This program is free software, distributed under the terms of the GNU General Public .\" Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING". You can .\" redistribute it and/or modify it under the terms of the GPL Version 3, or (at your .\" option) any later version. .\" .\" This program is distributed in the hope that it will be useful, but WITHOUT ANY .\" WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A .\" PARTICULAR PURPOSE. See the GNU General Public License for more details. .\" .\" 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. .TH CTA-CATALOGUE-SCHEMA-CREATE "1cta" "2022-07-12" "CTA" "The CERN Tape Archive (CTA)" .SH NAME cta-catalogue-schema-create \- Create the CTA Catalogue schema .SH SYNOPSIS \fBcta-catalogue-schema-create\fP \fIdatabaseConnectionFile\fR [--help] [--version \fIschema_version\fR] .SH DESCRIPTION \fBcta-catalogue-schema-create\fP is a command-line tool that creates the CTA catalogue database schema. It will abort if the \fBCTA_CATALOGUE\fP table is already present in the database. .P \fIdatabaseConnectionFile\fR is the path to the configuration file containing the connection details of the CTA Catalogue database. .SH OPTIONS .TP \-h, \-\-help Display command options and exit. .TP -v, --version \fIschema_version\fR Version of the CTA Catalogue schema to be created. By default, \fBcta-catalogue-schema-create\fP creates the latest version of the schema. This option allows the creation of an earlier version. This is useful for testing the upgrade from an older schema version to a newer version. .SH EXIT STATUS .P \fBcta-catalogue-schema-create\fP returns 0 on success. .SH EXAMPLE .P cta-catalogue-schema-create /etc/cta/cta-catalogue.conf .SH SEE ALSO .P CERN Tape Archive documentation (\fIhttps://eoscta.docs.cern.ch/\fR) .SH COPYRIGHT .P Copyright © 2022 CERN. License GPLv3+: GNU GPL version 3 or later (\fIhttp://gnu.org/licenses/gpl.html\fR). 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.