-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#54: remove nullable from props of ValidationPackage model
- Loading branch information
Showing
4 changed files
with
291 additions
and
4 deletions.
There are no files selected for viewing
231 changes: 231 additions & 0 deletions
231
src/PackageRegistryService/Migrations/20240625140809_NoNullableFields.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
54 changes: 54 additions & 0 deletions
54
src/PackageRegistryService/Migrations/20240625140809_NoNullableFields.cs
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,54 @@ | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace PackageRegistryService.Migrations | ||
{ | ||
/// <inheritdoc /> | ||
public partial class NoNullableFields : Migration | ||
{ | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AlterColumn<string>( | ||
name: "ReleaseNotes", | ||
table: "ValidationPackages", | ||
type: "text", | ||
nullable: false, | ||
defaultValue: "", | ||
oldClrType: typeof(string), | ||
oldType: "text", | ||
oldNullable: true); | ||
|
||
migrationBuilder.AlterColumn<string>( | ||
name: "CQCHookEndpoint", | ||
table: "ValidationPackages", | ||
type: "text", | ||
nullable: false, | ||
defaultValue: "", | ||
oldClrType: typeof(string), | ||
oldType: "text", | ||
oldNullable: true); | ||
} | ||
|
||
/// <inheritdoc /> | ||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AlterColumn<string>( | ||
name: "ReleaseNotes", | ||
table: "ValidationPackages", | ||
type: "text", | ||
nullable: true, | ||
oldClrType: typeof(string), | ||
oldType: "text"); | ||
|
||
migrationBuilder.AlterColumn<string>( | ||
name: "CQCHookEndpoint", | ||
table: "ValidationPackages", | ||
type: "text", | ||
nullable: true, | ||
oldClrType: typeof(string), | ||
oldType: "text"); | ||
} | ||
} | ||
} |
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
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