Changeset View
Changeset View
Standalone View
Standalone View
swh/storage/cassandra/schema.py
Show First 20 Lines • Show All 182 Lines • ▼ Show 20 Lines | |||||
CREATE TABLE IF NOT EXISTS metadata_fetcher ( | CREATE TABLE IF NOT EXISTS metadata_fetcher ( | ||||
name ascii, | name ascii, | ||||
version ascii, | version ascii, | ||||
metadata text, | metadata text, | ||||
PRIMARY KEY ((name), version) | PRIMARY KEY ((name), version) | ||||
);""", | );""", | ||||
""" | """ | ||||
CREATE TABLE IF NOT EXISTS raw_extrinsic_metadata ( | CREATE TABLE IF NOT EXISTS raw_extrinsic_metadata ( | ||||
type text, | |||||
target text, | target text, | ||||
-- metadata source | -- metadata source | ||||
authority_type text, | authority_type text, | ||||
authority_url text, | authority_url text, | ||||
discovery_date timestamp, | discovery_date timestamp, | ||||
fetcher_name ascii, | fetcher_name ascii, | ||||
fetcher_version ascii, | fetcher_version ascii, | ||||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |