From 8faacb2dcfc17b052f8020aeffc675f2db0f24cc Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 17 Aug 2018 15:08:25 -0700 Subject: cockroach: catch remaining JSONB stuff --- rust/migrations/2018-05-12-001226_init/up.sql | 14 +++++++------- rust/src/database_schema.rs | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/rust/migrations/2018-05-12-001226_init/up.sql b/rust/migrations/2018-05-12-001226_init/up.sql index 113eea60..873700ab 100644 --- a/rust/migrations/2018-05-12-001226_init/up.sql +++ b/rust/migrations/2018-05-12-001226_init/up.sql @@ -81,7 +81,7 @@ CREATE TABLE creator_edit ( rev_id UUID REFERENCES creator_rev(id), redirect_id UUID REFERENCES creator_ident(id), prev_rev UUID REFERENCES creator_rev(id), - extra_json JSON + extra_json JSONB ); CREATE INDEX creator_edit_idx ON creator_edit(editgroup_id); @@ -119,7 +119,7 @@ CREATE TABLE container_edit ( rev_id UUID REFERENCES container_rev(id), redirect_id UUID REFERENCES container_ident(id), prev_rev UUID REFERENCES container_rev(id), - extra_json JSON + extra_json JSONB ); CREATE INDEX container_edit_idx ON container_edit(editgroup_id); @@ -164,7 +164,7 @@ CREATE TABLE file_edit ( rev_id UUID REFERENCES file_rev(id), redirect_id UUID REFERENCES file_ident(id), prev_rev UUID REFERENCES file_rev(id), - extra_json JSON + extra_json JSONB ); CREATE INDEX file_edit_idx ON file_edit(editgroup_id); @@ -228,7 +228,7 @@ CREATE TABLE release_edit ( rev_id UUID REFERENCES release_rev(id), redirect_id UUID REFERENCES release_ident(id), prev_rev UUID REFERENCES release_rev(id), - extra_json JSON + extra_json JSONB ); CREATE INDEX release_edit_idx ON release_edit(editgroup_id); @@ -236,7 +236,7 @@ CREATE INDEX release_edit_idx ON release_edit(editgroup_id); -------------------- Works -------------------------------------------------- CREATE TABLE work_rev ( id UUID PRIMARY KEY DEFAULT gen_random_uuid(), - extra_json JSON + extra_json JSONB ); CREATE TABLE work_ident ( @@ -256,7 +256,7 @@ CREATE TABLE work_edit ( rev_id UUID REFERENCES work_rev(id), redirect_id UUID REFERENCES work_ident(id), prev_rev UUID REFERENCES work_rev(id), - extra_json JSON + extra_json JSONB ); CREATE INDEX work_edit_idx ON work_edit(editgroup_id); @@ -274,7 +274,7 @@ CREATE TABLE release_contrib ( raw_name TEXT, role TEXT, -- TODO: enum? index_val BIGINT, - extra_json JSON + extra_json JSONB ); CREATE INDEX release_contrib_rev_idx ON release_contrib(release_rev); diff --git a/rust/src/database_schema.rs b/rust/src/database_schema.rs index 98eb0961..bc3f6c3a 100644 --- a/rust/src/database_schema.rs +++ b/rust/src/database_schema.rs @@ -22,7 +22,7 @@ table! { rev_id -> Nullable, redirect_id -> Nullable, prev_rev -> Nullable, - extra_json -> Nullable, + extra_json -> Nullable, } } @@ -57,7 +57,7 @@ table! { rev_id -> Nullable, redirect_id -> Nullable, prev_rev -> Nullable, - extra_json -> Nullable, + extra_json -> Nullable, } } @@ -111,7 +111,7 @@ table! { rev_id -> Nullable, redirect_id -> Nullable, prev_rev -> Nullable, - extra_json -> Nullable, + extra_json -> Nullable, } } @@ -160,7 +160,7 @@ table! { raw_name -> Nullable, role -> Nullable, index_val -> Nullable, - extra_json -> Nullable, + extra_json -> Nullable, } } @@ -173,7 +173,7 @@ table! { rev_id -> Nullable, redirect_id -> Nullable, prev_rev -> Nullable, - extra_json -> Nullable, + extra_json -> Nullable, } } @@ -244,7 +244,7 @@ table! { rev_id -> Nullable, redirect_id -> Nullable, prev_rev -> Nullable, - extra_json -> Nullable, + extra_json -> Nullable, } } @@ -260,7 +260,7 @@ table! { table! { work_rev (id) { id -> Uuid, - extra_json -> Nullable, + extra_json -> Nullable, } } -- cgit v1.2.3