-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Extend FileName length for images
- Loading branch information
Showing
2 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
83 changes: 83 additions & 0 deletions
83
Providers/DataProvider/SqlDataProvider/00.13.02.SqlDataProvider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters