1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-05 13:08:17 -05:00

Fixes #1101: Extend email column length to 256 characters (Postgres) (#1192)

This commit is contained in:
Daniel James Smith 2021-03-12 20:28:30 +01:00 committed by GitHub
parent 39f9f15bd4
commit 0f7e8dc806
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View File

@ -11,7 +11,7 @@ LANGUAGE 'plpgsql'
AS
$BODY$
DECLARE
email_like_search VARCHAR(55) = _email || '%';
email_like_search VARCHAR(261) = _email || '%';
BEGIN
RETURN QUERY

View File

@ -3,7 +3,7 @@
CREATE TABLE IF NOT EXISTS installation (
id UUID NOT NULL,
email VARCHAR (50) NOT NULL,
email VARCHAR (256) NOT NULL,
key VARCHAR (150) NOT NULL,
enabled BIT NOT NULL,
creation_date TIMESTAMPTZ NOT NULL,

View File

@ -9,7 +9,7 @@ CREATE TABLE IF NOT EXISTS organization (
business_address_3 VARCHAR (50) NULL,
business_country VARCHAR (2) NULL,
business_tax_number VARCHAR (30) NULL,
billing_email VARCHAR (50) NOT NULL,
billing_email VARCHAR (256) NOT NULL,
plan VARCHAR (50) NOT NULL,
plan_type SMALLINT NOT NULL,
seats SMALLINT NULL,

View File

@ -4,7 +4,7 @@ CREATE TABLE IF NOT EXISTS organization_user (
id UUID NOT NULL,
organization_id UUID NOT NULL,
user_id UUID NULL,
email VARCHAR (50) NULL,
email VARCHAR (256) NULL,
key TEXT NULL,
status SMALLINT NOT NULL,
type SMALLINT NOT NULL,

View File

@ -3,7 +3,7 @@
CREATE TABLE "user" (
id UUID NOT NULL,
name VARCHAR (50) NULL,
email VARCHAR (50) NOT NULL,
email VARCHAR (256) NOT NULL,
email_verified BOOLEAN NOT NULL,
master_password VARCHAR (300) NOT NULL,
master_password_hint VARCHAR (50) NULL,