From 68a90aa6fdd6cbd3b018ee37fabeb1a901b59c42 Mon Sep 17 00:00:00 2001 From: Stefan Kamphuis Date: Thu, 7 Jul 2022 08:13:13 +0200 Subject: [PATCH] Extend FileName length for images --- .../SqlDataProvider/00.13.02.SqlDataProvider | 83 +++++++++++++++++++ ...ntrian.NewsArticles.SqlDataProvider.vbproj | 1 + 2 files changed, 84 insertions(+) create mode 100644 Providers/DataProvider/SqlDataProvider/00.13.02.SqlDataProvider diff --git a/Providers/DataProvider/SqlDataProvider/00.13.02.SqlDataProvider b/Providers/DataProvider/SqlDataProvider/00.13.02.SqlDataProvider new file mode 100644 index 0000000..16a6098 --- /dev/null +++ b/Providers/DataProvider/SqlDataProvider/00.13.02.SqlDataProvider @@ -0,0 +1,83 @@ +ALTER TABLE {databaseOwner}{objectQualifier}DnnForge_NewsArticles_Image ALTER COLUMN FileName nvarchar(250) NULL +GO + +ALTER PROCEDURE [dbo].[DnnForge_NewsArticles_ImageUpdate] + @ImageID int, + @ArticleID int, + @Title nvarchar(255), + @FileName nvarchar(250), + @Extension nvarchar(100), + @Size int, + @Width int, + @Height int, + @ContentType nvarchar(200), + @Folder nvarchar(200), + @SortOrder int, + @ImageGuid nvarchar(50), + @Description ntext +AS + +UPDATE + dbo.DnnForge_NewsArticles_Image +SET + [ArticleID] = @ArticleID, + [Title] = @Title, + [FileName] = @FileName, + [Extension] = @Extension, + [Size] = @Size, + [Width] = @Width, + [Height] = @Height, + [ContentType] = @ContentType, + [Folder] = @Folder, + [SortOrder] = @SortOrder, + [ImageGuid] = @ImageGuid, + [Description] = @Description +WHERE + [ImageID] = @ImageID +GO + +ALTER PROCEDURE [dbo].[DnnForge_NewsArticles_ImageAdd] + @ArticleID int, + @Title nvarchar(255), + @FileName nvarchar(250), + @Extension nvarchar(100), + @Size int, + @Width int, + @Height int, + @ContentType nvarchar(200), + @Folder nvarchar(200), + @SortOrder int, + @ImageGuid nvarchar(50), + @Description ntext +AS + +INSERT INTO dbo.DnnForge_NewsArticles_Image ( + [ArticleID], + [Title], + [FileName], + [Extension], + [Size], + [Width], + [Height], + [ContentType], + [Folder], + [SortOrder], + [ImageGuid], + [Description] +) VALUES ( + @ArticleID, + @Title, + @FileName, + @Extension, + @Size, + @Width, + @Height, + @ContentType, + @Folder, + @SortOrder, + @ImageGuid, + @Description +) + +select SCOPE_IDENTITY() +GO \ No newline at end of file diff --git a/Providers/DataProvider/SqlDataProvider/Ventrian.NewsArticles.SqlDataProvider.vbproj b/Providers/DataProvider/SqlDataProvider/Ventrian.NewsArticles.SqlDataProvider.vbproj index 805296b..056adcf 100755 --- a/Providers/DataProvider/SqlDataProvider/Ventrian.NewsArticles.SqlDataProvider.vbproj +++ b/Providers/DataProvider/SqlDataProvider/Ventrian.NewsArticles.SqlDataProvider.vbproj @@ -231,6 +231,7 @@ +