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

increase group name length to 100

This commit is contained in:
Kyle Spearrin 2018-10-22 09:34:26 -04:00
parent 552bddc1a4
commit 22033d075d
3 changed files with 6 additions and 3 deletions

View File

@ -9,7 +9,7 @@ namespace Bit.Core.Models.Api
public class GroupRequestModel public class GroupRequestModel
{ {
[Required] [Required]
[StringLength(50)] [StringLength(100)]
public string Name { get; set; } public string Name { get; set; }
[Required] [Required]
public bool? AccessAll { get; set; } public bool? AccessAll { get; set; }

View File

@ -1,7 +1,7 @@
CREATE TABLE [dbo].[Group] ( CREATE TABLE [dbo].[Group] (
[Id] UNIQUEIDENTIFIER NOT NULL, [Id] UNIQUEIDENTIFIER NOT NULL,
[OrganizationId] UNIQUEIDENTIFIER NOT NULL, [OrganizationId] UNIQUEIDENTIFIER NOT NULL,
[Name] NVARCHAR (50) NOT NULL, [Name] NVARCHAR (100) NOT NULL,
[AccessAll] BIT NOT NULL, [AccessAll] BIT NOT NULL,
[ExternalId] NVARCHAR (300) NULL, [ExternalId] NVARCHAR (300) NULL,
[CreationDate] DATETIME NOT NULL, [CreationDate] DATETIME NOT NULL,

View File

@ -1,4 +1,7 @@
IF OBJECT_ID('[dbo].[UserCollectionDetails]') IS NOT NULL ALTER TABLE [dbo].[Group] ALTER COLUMN [Name] NVARCHAR (100) NOT NULL
GO
IF OBJECT_ID('[dbo].[UserCollectionDetails]') IS NOT NULL
BEGIN BEGIN
DROP FUNCTION [dbo].[UserCollectionDetails] DROP FUNCTION [dbo].[UserCollectionDetails]
END END