-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Resize address fields according to customer address fields
- Loading branch information
1 parent
223443b
commit 6337006
Showing
10 changed files
with
2,148 additions
and
44 deletions.
There are no files selected for viewing
547 changes: 547 additions & 0 deletions
547
...Commerce.QuoteModule.Data.MySql/Migrations/20240531122945_ResizeAddressFields.Designer.cs
Large diffs are not rendered by default.
Oops, something went wrong.
168 changes: 168 additions & 0 deletions
168
src/VirtoCommerce.QuoteModule.Data.MySql/Migrations/20240531122945_ResizeAddressFields.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,168 @@ | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace VirtoCommerce.QuoteModule.Data.MySql.Migrations | ||
{ | ||
/// <inheritdoc /> | ||
public partial class ResizeAddressFields : Migration | ||
{ | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AlterColumn<string>( | ||
name: "Organization", | ||
table: "QuoteAddress", | ||
type: "varchar(512)", | ||
maxLength: 512, | ||
nullable: true, | ||
oldClrType: typeof(string), | ||
oldType: "varchar(64)", | ||
oldMaxLength: 64, | ||
oldNullable: true) | ||
.Annotation("MySql:CharSet", "utf8mb4") | ||
.OldAnnotation("MySql:CharSet", "utf8mb4"); | ||
|
||
migrationBuilder.AlterColumn<string>( | ||
name: "LastName", | ||
table: "QuoteAddress", | ||
type: "varchar(128)", | ||
maxLength: 128, | ||
nullable: false, | ||
oldClrType: typeof(string), | ||
oldType: "varchar(64)", | ||
oldMaxLength: 64) | ||
.Annotation("MySql:CharSet", "utf8mb4") | ||
.OldAnnotation("MySql:CharSet", "utf8mb4"); | ||
|
||
migrationBuilder.AlterColumn<string>( | ||
name: "FirstName", | ||
table: "QuoteAddress", | ||
type: "varchar(128)", | ||
maxLength: 128, | ||
nullable: false, | ||
oldClrType: typeof(string), | ||
oldType: "varchar(64)", | ||
oldMaxLength: 64) | ||
.Annotation("MySql:CharSet", "utf8mb4") | ||
.OldAnnotation("MySql:CharSet", "utf8mb4"); | ||
|
||
migrationBuilder.AlterColumn<string>( | ||
name: "Email", | ||
table: "QuoteAddress", | ||
type: "varchar(256)", | ||
maxLength: 256, | ||
nullable: true, | ||
oldClrType: typeof(string), | ||
oldType: "varchar(254)", | ||
oldMaxLength: 254, | ||
oldNullable: true) | ||
.Annotation("MySql:CharSet", "utf8mb4") | ||
.OldAnnotation("MySql:CharSet", "utf8mb4"); | ||
|
||
migrationBuilder.AlterColumn<string>( | ||
name: "CountryName", | ||
table: "QuoteAddress", | ||
type: "varchar(128)", | ||
maxLength: 128, | ||
nullable: false, | ||
oldClrType: typeof(string), | ||
oldType: "varchar(64)", | ||
oldMaxLength: 64) | ||
.Annotation("MySql:CharSet", "utf8mb4") | ||
.OldAnnotation("MySql:CharSet", "utf8mb4"); | ||
|
||
migrationBuilder.AlterColumn<string>( | ||
name: "AddressType", | ||
table: "QuoteAddress", | ||
type: "varchar(64)", | ||
maxLength: 64, | ||
nullable: true, | ||
oldClrType: typeof(string), | ||
oldType: "varchar(32)", | ||
oldMaxLength: 32, | ||
oldNullable: true) | ||
.Annotation("MySql:CharSet", "utf8mb4") | ||
.OldAnnotation("MySql:CharSet", "utf8mb4"); | ||
} | ||
|
||
/// <inheritdoc /> | ||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AlterColumn<string>( | ||
name: "Organization", | ||
table: "QuoteAddress", | ||
type: "varchar(64)", | ||
maxLength: 64, | ||
nullable: true, | ||
oldClrType: typeof(string), | ||
oldType: "varchar(512)", | ||
oldMaxLength: 512, | ||
oldNullable: true) | ||
.Annotation("MySql:CharSet", "utf8mb4") | ||
.OldAnnotation("MySql:CharSet", "utf8mb4"); | ||
|
||
migrationBuilder.AlterColumn<string>( | ||
name: "LastName", | ||
table: "QuoteAddress", | ||
type: "varchar(64)", | ||
maxLength: 64, | ||
nullable: false, | ||
oldClrType: typeof(string), | ||
oldType: "varchar(128)", | ||
oldMaxLength: 128) | ||
.Annotation("MySql:CharSet", "utf8mb4") | ||
.OldAnnotation("MySql:CharSet", "utf8mb4"); | ||
|
||
migrationBuilder.AlterColumn<string>( | ||
name: "FirstName", | ||
table: "QuoteAddress", | ||
type: "varchar(64)", | ||
maxLength: 64, | ||
nullable: false, | ||
oldClrType: typeof(string), | ||
oldType: "varchar(128)", | ||
oldMaxLength: 128) | ||
.Annotation("MySql:CharSet", "utf8mb4") | ||
.OldAnnotation("MySql:CharSet", "utf8mb4"); | ||
|
||
migrationBuilder.AlterColumn<string>( | ||
name: "Email", | ||
table: "QuoteAddress", | ||
type: "varchar(254)", | ||
maxLength: 254, | ||
nullable: true, | ||
oldClrType: typeof(string), | ||
oldType: "varchar(256)", | ||
oldMaxLength: 256, | ||
oldNullable: true) | ||
.Annotation("MySql:CharSet", "utf8mb4") | ||
.OldAnnotation("MySql:CharSet", "utf8mb4"); | ||
|
||
migrationBuilder.AlterColumn<string>( | ||
name: "CountryName", | ||
table: "QuoteAddress", | ||
type: "varchar(64)", | ||
maxLength: 64, | ||
nullable: false, | ||
oldClrType: typeof(string), | ||
oldType: "varchar(128)", | ||
oldMaxLength: 128) | ||
.Annotation("MySql:CharSet", "utf8mb4") | ||
.OldAnnotation("MySql:CharSet", "utf8mb4"); | ||
|
||
migrationBuilder.AlterColumn<string>( | ||
name: "AddressType", | ||
table: "QuoteAddress", | ||
type: "varchar(32)", | ||
maxLength: 32, | ||
nullable: true, | ||
oldClrType: typeof(string), | ||
oldType: "varchar(64)", | ||
oldMaxLength: 64, | ||
oldNullable: true) | ||
.Annotation("MySql:CharSet", "utf8mb4") | ||
.OldAnnotation("MySql:CharSet", "utf8mb4"); | ||
} | ||
} | ||
} |
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.