-
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.
Identity Address in database is filled with blanks up to 80 characters (
#711) * refactor: change identity address database type and generate postgres migrations * fix: postgres migrations and add sql server migrations
- Loading branch information
1 parent
ec3b283
commit 31b5263
Showing
53 changed files
with
6,826 additions
and
123 deletions.
There are no files selected for viewing
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
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
59 changes: 59 additions & 0 deletions
59
....Database.Postgres/Migrations/20240621113404_IdentityAddresses_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
...structure.Database.Postgres/Migrations/20240621113404_IdentityAddresses_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.Postgres.Migrations | ||
{ | ||
/// <inheritdoc /> | ||
public partial class IdentityAddresses_Varying_Length : Migration | ||
{ | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AlterColumn<string>( | ||
name: "CreatedBy", | ||
schema: "Challenges", | ||
table: "Challenges", | ||
type: "character varying(80)", | ||
unicode: false, | ||
maxLength: 80, | ||
nullable: true, | ||
oldClrType: typeof(string), | ||
oldType: "character(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: "character(80)", | ||
unicode: false, | ||
fixedLength: true, | ||
maxLength: 80, | ||
nullable: true, | ||
oldClrType: typeof(string), | ||
oldType: "character varying(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
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
Oops, something went wrong.