mirror of
https://github.com/bitwarden/server
synced 2026-01-09 03:53:42 +00:00
PostgreSQL - Functions (#578)
* PostgreSQL initial commit of translation from SQL Server to PostgreSQL * snake_case added. set search path for schema. schema qualified name no longer needed for creation and access of functions. * Table DDL for PostgreSQL * Rename User.sql to user.sql * PostgreSQL views, snake_case column fix for user_create, rename of users.sql file to lowercase * user_update function * remove tabs * cast types, and table DDL changed to match * case * resolve casting issues. casting is done inside function * update views * more functions * more functions * removed casting * spelling mistake * spelling * changes to functions, added replace
This commit is contained in:
@@ -4,7 +4,7 @@ CREATE TABLE "user" (
|
||||
id UUID NOT NULL,
|
||||
name VARCHAR (50) NULL,
|
||||
email VARCHAR (50) NOT NULL,
|
||||
email_verified BIT NOT NULL,
|
||||
email_verified BOOLEAN NOT NULL,
|
||||
master_password VARCHAR (300) NOT NULL,
|
||||
master_password_hint VARCHAR (50) NULL,
|
||||
culture VARCHAR (10) NOT NULL,
|
||||
@@ -17,7 +17,7 @@ CREATE TABLE "user" (
|
||||
key TEXT NULL,
|
||||
public_key TEXT NULL,
|
||||
private_key TEXT NULL,
|
||||
premium BIT NOT NULL,
|
||||
premium BOOLEAN NOT NULL,
|
||||
premium_expiration_date TIMESTAMPTZ NULL,
|
||||
renewal_reminder_date TIMESTAMPTZ NULL,
|
||||
storage BIGINT NULL,
|
||||
|
||||
Reference in New Issue
Block a user