Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

changed missing references

Ollie Halliday26ee772564ac
diff --git a/examples/caching/with-nextjs-13/supabase/migrations/20221028100232_init.sql b/examples/caching/with-nextjs-13/supabase/migrations/20221028100232_init.sql
index 4ba75d36bc0..2bb0a7b0860 100644
--- a/examples/caching/with-nextjs-13/supabase/migrations/20221028100232_init.sql
+++ b/examples/caching/with-nextjs-13/supabase/migrations/20221028100232_init.sql
@@ -1,5 +1,5 @@
create table if not exists articles (
- id uuid default uuid_generate_v4() primary key,
+ id uuid default gen_random_uuid() primary key,
created_at timestamp with time zone default timezone('utc'::text, now()) not null,
title text not null,
content text not null,
diff --git a/studio/components/interfaces/SQLEditor/SQLEditor.constants.ts b/studio/components/interfaces/SQLEditor/SQLEditor.constants.ts
index e610754d84d..bfe5fec01a1 100644
--- a/studio/components/interfaces/SQLEditor/SQLEditor.constants.ts
+++ b/studio/components/interfaces/SQLEditor/SQLEditor.constants.ts
@@ -880,7 +880,7 @@ GRANT ALL ON SCHEMA next_auth TO postgres;
--
CREATE TABLE IF NOT EXISTS next_auth.users
(
- id uuid NOT NULL DEFAULT uuid_generate_v4(),
+ id uuid NOT NULL DEFAULT gen_random_uuid(),
name text,
email text,
"emailVerified" timestamp with time zone,
@@ -908,7 +908,7 @@ $$;
--
CREATE TABLE IF NOT EXISTS next_auth.sessions
(
- id uuid NOT NULL DEFAULT uuid_generate_v4(),
+ id uuid NOT NULL DEFAULT gen_random_uuid(),
expires timestamp with time zone NOT NULL,
"sessionToken" text NOT NULL,
"userId" uuid,
@@ -928,7 +928,7 @@ GRANT ALL ON TABLE next_auth.sessions TO service_role;
--
CREATE TABLE IF NOT EXISTS next_auth.accounts
(
- id uuid NOT NULL DEFAULT uuid_generate_v4(),
+ id uuid NOT NULL DEFAULT gen_random_uuid(),
type text NOT NULL,
provider text NOT NULL,
"providerAccountId" text NOT NULL,