mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#18211: Ensuring ContentItemRecord_id canis not nullable
Work Item: 18211 --HG-- branch : 1.x
This commit is contained in:
@@ -17,7 +17,12 @@ namespace Orchard.Tests.Storage {
|
||||
_filePath = _folderPath + "\\testfile.txt";
|
||||
|
||||
if (Directory.Exists(_folderPath)) {
|
||||
Directory.Delete(_folderPath, true);
|
||||
try {
|
||||
Directory.Delete(_folderPath, true);
|
||||
}
|
||||
catch {
|
||||
// happens sometimes
|
||||
}
|
||||
}
|
||||
|
||||
Directory.CreateDirectory(_folderPath);
|
||||
|
@@ -18,7 +18,7 @@ namespace Orchard.ContentManagement.DataMigrations {
|
||||
.Column<bool>("Published")
|
||||
.Column<bool>("Latest")
|
||||
.Column<string>("Data", c => c.Unlimited())
|
||||
.Column<int>("ContentItemRecord_id")
|
||||
.Column<int>("ContentItemRecord_id", c => c.NotNull())
|
||||
);
|
||||
|
||||
SchemaBuilder.CreateTable("ContentTypeRecord",
|
||||
|
Reference in New Issue
Block a user