From e307a8dfb4d2f87f4c11dd33ef17fb607d8d64d1 Mon Sep 17 00:00:00 2001 From: Davin Dubeau Date: Sun, 7 Jun 2015 17:19:18 -0400 Subject: [PATCH] updated int to bit in create new project #110 --- .../Stored Procedures/BugNet_Project_CreateNewProject.sql | 2 +- .../Providers/DataProviders/SqlDataProvider/SqlDataProvider.cs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/BugNET.Database/Stored Procedures/BugNet_Project_CreateNewProject.sql b/src/BugNET.Database/Stored Procedures/BugNet_Project_CreateNewProject.sql index 2ef27e8b..82e98bea 100644 --- a/src/BugNET.Database/Stored Procedures/BugNet_Project_CreateNewProject.sql +++ b/src/BugNET.Database/Stored Procedures/BugNet_Project_CreateNewProject.sql @@ -6,7 +6,7 @@ @AttachmentUploadPath nvarchar(80), @ProjectAccessType int, @ProjectCreatorUserName nvarchar(255), - @AllowAttachments int, + @AllowAttachments bit, @SvnRepositoryUrl nvarchar(255), @AllowIssueVoting bit, @ProjectImageFileContent varbinary(max), diff --git a/src/Library/Providers/DataProviders/SqlDataProvider/SqlDataProvider.cs b/src/Library/Providers/DataProviders/SqlDataProvider/SqlDataProvider.cs index fafb8f21..fc783109 100644 --- a/src/Library/Providers/DataProviders/SqlDataProvider/SqlDataProvider.cs +++ b/src/Library/Providers/DataProviders/SqlDataProvider/SqlDataProvider.cs @@ -936,7 +936,6 @@ public override int CreateNewProject(Project newProject) { AddParamToSqlCmd(sqlCmd, "@ReturnValue", SqlDbType.Int, 0, ParameterDirection.ReturnValue, null); AddParamToSqlCmd(sqlCmd, "@AllowAttachments", SqlDbType.Bit, 0, ParameterDirection.Input, newProject.AllowAttachments); - //AddParamToSQLCmd(sqlCmd, "@Active", SqlDbType.Bit, 0, ParameterDirection.Input, newProject.Active); AddParamToSqlCmd(sqlCmd, "@ProjectName", SqlDbType.NText, 256, ParameterDirection.Input, newProject.Name); AddParamToSqlCmd(sqlCmd, "@ProjectDescription", SqlDbType.NText, 1000, ParameterDirection.Input, newProject.Description); AddParamToSqlCmd(sqlCmd, "@ProjectManagerUserName", SqlDbType.NVarChar, 0, ParameterDirection.Input, newProject.ManagerUserName);