#18211: Ensuring ContentItemRecord_id canis not nullable

Work Item: 18211

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2011-12-15 17:18:22 -08:00
parent f6266d7ab9
commit a34292e2f0
2 changed files with 7 additions and 2 deletions

View File

@@ -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);

View File

@@ -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",