aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/common/music/components/music-cassandra/resources/cql/admin.cql
blob: a76d774bd36e38ae1aed4ff08458748fe5ce2e76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
CREATE KEYSPACE IF NOT EXISTS admin
    WITH REPLICATION = {
        'class' : '{{.Values.cql.keyspace.replicationClass}}',
        'replication_factor': {{.Values.cql.keyspace.replicationFactor}}
    }
    AND DURABLE_WRITES = true;

CREATE TABLE IF NOT EXISTS admin.keyspace_master (
    uuid uuid,
    keyspace_name text,
    application_name text,
    is_api boolean,
    password text,
    username text,
    is_aaf boolean,
    PRIMARY KEY (uuid)
);

describe keyspaces;