mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-08 07:23:10 -06:00
Fix comments?
This commit is contained in:
parent
b8f2999c04
commit
e7b7ed3316
|
|
@ -8,14 +8,14 @@ import (
|
||||||
const previousEventSchema = `
|
const previousEventSchema = `
|
||||||
-- The previous events table stores the event_ids referenced by the events
|
-- The previous events table stores the event_ids referenced by the events
|
||||||
-- stored in the events table.
|
-- stored in the events table.
|
||||||
-- This is used to tell if a new event is already referenced by an event we
|
-- This is used to tell if a new event is already referenced by an event in
|
||||||
|
-- the database.
|
||||||
CREATE TABLE IF NOT EXISTS previous_events (
|
CREATE TABLE IF NOT EXISTS previous_events (
|
||||||
// The string event ID taken from the prev_events key of an event.
|
-- The string event ID taken from the prev_events key of an event.
|
||||||
previous_event_id TEXT NOT NULL,
|
previous_event_id TEXT NOT NULL,
|
||||||
// The SHA256 reference hash taken from the prev_events key of an event.
|
-- The SHA256 reference hash taken from the prev_events key of an event.
|
||||||
previous_reference_sha256 BYTEA NOT NULL,
|
previous_reference_sha256 BYTEA NOT NULL,
|
||||||
// A list of numeric event IDs of events that reference this prev_event.
|
-- A list of numeric event IDs of events that reference this prev_event.
|
||||||
// This isn'
|
|
||||||
event_nids BIGINT[] NOT NULL,
|
event_nids BIGINT[] NOT NULL,
|
||||||
CONSTRAINT previous_event_id_unique UNIQUE (region_nid, prev_event_id, prev_reference_sha256)
|
CONSTRAINT previous_event_id_unique UNIQUE (region_nid, prev_event_id, prev_reference_sha256)
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue