From 343a695984b549d1ab96e0aaebe22176bc512ded Mon Sep 17 00:00:00 2001 From: anthonydb Date: Sat, 27 Mar 2021 10:45:16 -0400 Subject: [PATCH] New Chapter 16 code and data on working with JSON --- Chapter_16/Chapter_16.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Chapter_16/Chapter_16.sql b/Chapter_16/Chapter_16.sql index 13812c6..5e3739d 100644 --- a/Chapter_16/Chapter_16.sql +++ b/Chapter_16/Chapter_16.sql @@ -41,7 +41,7 @@ CREATE TABLE films ( id integer GENERATED ALWAYS AS IDENTITY PRIMARY KEY, - film jsonb + film jsonb NOT NULL ); COPY films (film) @@ -199,7 +199,7 @@ WHERE film ?& '{rating, genre}'; CREATE TABLE earthquakes ( id integer GENERATED ALWAYS AS IDENTITY PRIMARY KEY, - earthquake jsonb + earthquake jsonb NOT NULL ); COPY earthquakes (earthquake)