-
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.
feat: add 100 char-long identityAddresses on SqlServer
- Loading branch information
Showing
21 changed files
with
2,197 additions
and
51 deletions.
There are no files selected for viewing
58 changes: 58 additions & 0 deletions
58
...nfrastructure.Database.SqlServer/Migrations/20240321143836_IdentityAddress100.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
...llenges.Infrastructure.Database.SqlServer/Migrations/20240321143836_IdentityAddress100.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 IdentityAddress100 : Migration | ||
{ | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AlterColumn<string>( | ||
name: "CreatedBy", | ||
table: "Challenges", | ||
type: "char(100)", | ||
unicode: false, | ||
fixedLength: true, | ||
maxLength: 100, | ||
nullable: true, | ||
oldClrType: typeof(string), | ||
oldType: "char(36)", | ||
oldUnicode: false, | ||
oldFixedLength: true, | ||
oldMaxLength: 36, | ||
oldNullable: true); | ||
} | ||
|
||
/// <inheritdoc /> | ||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AlterColumn<string>( | ||
name: "CreatedBy", | ||
table: "Challenges", | ||
type: "char(36)", | ||
unicode: false, | ||
fixedLength: true, | ||
maxLength: 36, | ||
nullable: true, | ||
oldClrType: typeof(string), | ||
oldType: "char(100)", | ||
oldUnicode: false, | ||
oldFixedLength: true, | ||
oldMaxLength: 100, | ||
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
119 changes: 119 additions & 0 deletions
119
...nfrastructure.Database.SqlServer/Migrations/20240321143901_IdentityAddress100.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
132 changes: 132 additions & 0 deletions
132
...c/Files.Infrastructure.Database.SqlServer/Migrations/20240321143901_IdentityAddress100.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,132 @@ | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace Backbone.Modules.Files.Infrastructure.Database.SqlServer.Migrations | ||
{ | ||
/// <inheritdoc /> | ||
public partial class IdentityAddress100 : Migration | ||
{ | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AlterColumn<string>( | ||
name: "Owner", | ||
table: "FileMetadata", | ||
type: "char(100)", | ||
unicode: false, | ||
fixedLength: true, | ||
maxLength: 100, | ||
nullable: false, | ||
oldClrType: typeof(string), | ||
oldType: "char(36)", | ||
oldUnicode: false, | ||
oldFixedLength: true, | ||
oldMaxLength: 36); | ||
|
||
migrationBuilder.AlterColumn<string>( | ||
name: "ModifiedBy", | ||
table: "FileMetadata", | ||
type: "char(100)", | ||
unicode: false, | ||
fixedLength: true, | ||
maxLength: 100, | ||
nullable: false, | ||
oldClrType: typeof(string), | ||
oldType: "char(36)", | ||
oldUnicode: false, | ||
oldFixedLength: true, | ||
oldMaxLength: 36); | ||
|
||
migrationBuilder.AlterColumn<string>( | ||
name: "DeletedBy", | ||
table: "FileMetadata", | ||
type: "char(100)", | ||
unicode: false, | ||
fixedLength: true, | ||
maxLength: 100, | ||
nullable: true, | ||
oldClrType: typeof(string), | ||
oldType: "char(36)", | ||
oldUnicode: false, | ||
oldFixedLength: true, | ||
oldMaxLength: 36, | ||
oldNullable: true); | ||
|
||
migrationBuilder.AlterColumn<string>( | ||
name: "CreatedBy", | ||
table: "FileMetadata", | ||
type: "char(100)", | ||
unicode: false, | ||
fixedLength: true, | ||
maxLength: 100, | ||
nullable: false, | ||
oldClrType: typeof(string), | ||
oldType: "char(36)", | ||
oldUnicode: false, | ||
oldFixedLength: true, | ||
oldMaxLength: 36); | ||
} | ||
|
||
/// <inheritdoc /> | ||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AlterColumn<string>( | ||
name: "Owner", | ||
table: "FileMetadata", | ||
type: "char(36)", | ||
unicode: false, | ||
fixedLength: true, | ||
maxLength: 36, | ||
nullable: false, | ||
oldClrType: typeof(string), | ||
oldType: "char(100)", | ||
oldUnicode: false, | ||
oldFixedLength: true, | ||
oldMaxLength: 100); | ||
|
||
migrationBuilder.AlterColumn<string>( | ||
name: "ModifiedBy", | ||
table: "FileMetadata", | ||
type: "char(36)", | ||
unicode: false, | ||
fixedLength: true, | ||
maxLength: 36, | ||
nullable: false, | ||
oldClrType: typeof(string), | ||
oldType: "char(100)", | ||
oldUnicode: false, | ||
oldFixedLength: true, | ||
oldMaxLength: 100); | ||
|
||
migrationBuilder.AlterColumn<string>( | ||
name: "DeletedBy", | ||
table: "FileMetadata", | ||
type: "char(36)", | ||
unicode: false, | ||
fixedLength: true, | ||
maxLength: 36, | ||
nullable: true, | ||
oldClrType: typeof(string), | ||
oldType: "char(100)", | ||
oldUnicode: false, | ||
oldFixedLength: true, | ||
oldMaxLength: 100, | ||
oldNullable: true); | ||
|
||
migrationBuilder.AlterColumn<string>( | ||
name: "CreatedBy", | ||
table: "FileMetadata", | ||
type: "char(36)", | ||
unicode: false, | ||
fixedLength: true, | ||
maxLength: 36, | ||
nullable: false, | ||
oldClrType: typeof(string), | ||
oldType: "char(100)", | ||
oldUnicode: false, | ||
oldFixedLength: true, | ||
oldMaxLength: 100); | ||
} | ||
} | ||
} |
Oops, something went wrong.