-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: postgres migrations and add sql server migrations
- Loading branch information
1 parent
51ff549
commit 5800009
Showing
26 changed files
with
3,625 additions
and
60 deletions.
There are no files selected for viewing
59 changes: 59 additions & 0 deletions
59
...e.Database.SqlServer/Migrations/20240621132736_IdentityAddress_Varying_Length.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
48 changes: 48 additions & 0 deletions
48
...astructure.Database.SqlServer/Migrations/20240621132736_IdentityAddress_Varying_Length.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,48 @@ | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace Backbone.Modules.Challenges.Infrastructure.Database.SqlServer.Migrations | ||
{ | ||
/// <inheritdoc /> | ||
public partial class IdentityAddress_Varying_Length : Migration | ||
{ | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AlterColumn<string>( | ||
name: "CreatedBy", | ||
schema: "Challenges", | ||
table: "Challenges", | ||
type: "varchar(80)", | ||
unicode: false, | ||
maxLength: 80, | ||
nullable: true, | ||
oldClrType: typeof(string), | ||
oldType: "char(80)", | ||
oldUnicode: false, | ||
oldFixedLength: true, | ||
oldMaxLength: 80, | ||
oldNullable: true); | ||
} | ||
|
||
/// <inheritdoc /> | ||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AlterColumn<string>( | ||
name: "CreatedBy", | ||
schema: "Challenges", | ||
table: "Challenges", | ||
type: "char(80)", | ||
unicode: false, | ||
fixedLength: true, | ||
maxLength: 80, | ||
nullable: true, | ||
oldClrType: typeof(string), | ||
oldType: "varchar(80)", | ||
oldUnicode: false, | ||
oldMaxLength: 80, | ||
oldNullable: true); | ||
} | ||
} | ||
} |
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
Oops, something went wrong.