From 6a6acc1dc249242695be986bf4cdc4efa966aa5a Mon Sep 17 00:00:00 2001 From: Jon Meyers Date: Wed, 16 Nov 2022 14:08:10 +1100 Subject: [PATCH] remove is_published field --- ...aching-supabase-data-in-next-js-server-components.mdx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/www/_blog/2022-11-18-fetching-and-caching-supabase-data-in-next-js-server-components.mdx b/apps/www/_blog/2022-11-18-fetching-and-caching-supabase-data-in-next-js-server-components.mdx index 6024141781f..e819b684120 100644 --- a/apps/www/_blog/2022-11-18-fetching-and-caching-supabase-data-in-next-js-server-components.mdx +++ b/apps/www/_blog/2022-11-18-fetching-and-caching-supabase-data-in-next-js-server-components.mdx @@ -66,14 +66,13 @@ create table if not exists posts ( id uuid default uuid_generate_v4() primary key, created_at timestamp with time zone default timezone('utc'::text, now()) not null, title text, - content text, - is_published boolean default false + content text ); -insert into posts(title, content, is_published) +insert into posts(title, content) values - ('My first post', 'Wow! What a great post.', true), - ('My second post', 'This one needs a little work!', false); + ('My first post', 'Wow! What a great post.'), + ('My second post', 'This one needs a little work!'); ``` This will create a table called `posts`, and populate it with some example data.