Skip to content

Commit 9435775

Browse files
committed
changed structure to jsonb
1 parent c25f16b commit 9435775

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

structure.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ CREATE TABLE ops (
22
collection character varying(255) not null,
33
doc_id character varying(255) not null,
44
version integer not null,
5-
operation json not null, -- {v:0, create:{...}} or {v:n, op:[...]}
5+
operation jsonb not null, -- {v:0, create:{...}} or {v:n, op:[...]}
66
PRIMARY KEY (collection, doc_id, version)
77
);
88

@@ -11,6 +11,6 @@ CREATE TABLE snapshots (
1111
doc_id character varying(255) not null,
1212
doc_type character varying(255) not null,
1313
version integer not null,
14-
data json not null,
14+
data jsonb not null,
1515
PRIMARY KEY (collection, doc_id)
1616
);

0 commit comments

Comments
 (0)