az2497 | f114644 | 2017-08-22 14:41:44 +0300 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | |
| 4 | |
| 5 | # Define the name of the CQL files |
| 6 | CASSANDRA_CQL_FILE=create_dox_db.cql |
| 7 | CASSANDRA_ALTER_CQL_FILE=alter_dox_db.cql |
| 8 | |
| 9 | # Generate the create schema CQL file |
| 10 | ./generate-cassandra-init-cql.sh ./cassandra-commands.json dox no > ${CASSANDRA_CQL_FILE} |
| 11 | ./generate-application-config-insert-cql.sh vsp.schemaTemplates ../../../tools/install/database/schemaTemplates >> ${CASSANDRA_CQL_FILE} |
| 12 | ./generate-application-config-insert-cql.sh vsp.monitoring ../../..//tools/install/database/monitoring >> ${CASSANDRA_CQL_FILE} |
| 13 | ./zusammen-generate-cassandra-init-cql.sh ./zusammen-cassandra-commands.json zusammen_dox no >> ${CASSANDRA_CQL_FILE} |
| 14 | |
| 15 | # Generate the alter schema CQL file |
| 16 | ./generate-cassandra-alter-cql.sh ./cassandra-commands.json > ${CASSANDRA_ALTER_CQL_FILE} |
| 17 | |
| 18 | |