-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
c/consoleRelated to consoleRelated to consolec/serverRelated to serverRelated to serverk/enhancementNew feature or improve an existing featureNew feature or improve an existing feature
Milestone
Description
While UUID type is natively supported in Postgres, pgcrypto extension has to be enabled to add a default value.
Without default value:
CREATE TABLE article (
id UUID PRIMARY KEY,
title TEXT NOT NULL
)With default value:
CREATE EXTENSION IF NOT EXISTS pgcrypto;
CREATE TABLE article (
id UUID DEFAULT gen_random_uuid() PRIMARY KEY,
title TEXT NOT NULL
);dschoeni, shahidhk, praveenweb, seb777, wawhal and 1 more
Metadata
Metadata
Assignees
Labels
c/consoleRelated to consoleRelated to consolec/serverRelated to serverRelated to serverk/enhancementNew feature or improve an existing featureNew feature or improve an existing feature