mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-26 00:03:09 -06:00
Fix create table syntax on postgres
This commit is contained in:
parent
8a7ccd5d1d
commit
62fd09946e
|
|
@ -56,7 +56,7 @@ func newPostgresDatabase(dbOpts *config.DatabaseOptions) (Database, error) {
|
||||||
parent_event_id TEXT NOT NULL,
|
parent_event_id TEXT NOT NULL,
|
||||||
child_event_id TEXT NOT NULL,
|
child_event_id TEXT NOT NULL,
|
||||||
rel_type TEXT NOT NULL,
|
rel_type TEXT NOT NULL,
|
||||||
CONSTRAINT msc2836_edges UNIQUE (parent_event_id, child_event_id, rel_type)
|
CONSTRAINT msc2836_edges_uniq UNIQUE (parent_event_id, child_event_id, rel_type)
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS msc2836_nodes (
|
CREATE TABLE IF NOT EXISTS msc2836_nodes (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue