mirror of https://github.com/EasyAbp/EShop.git
163 changed files with 2931 additions and 280477 deletions
@ -1,10 +1,10 @@ |
|||
<Project> |
|||
<PropertyGroup> |
|||
|
|||
<AbpVersion>4.3.0</AbpVersion> |
|||
<EasyAbpAbpTreesModuleVersion>2.3.0</EasyAbpAbpTreesModuleVersion> |
|||
<EasyAbpPaymentServiceModuleVersion>1.10.2</EasyAbpPaymentServiceModuleVersion> |
|||
<EasyAbpAbpTagHelperPlusModuleVersion>0.6.3</EasyAbpAbpTagHelperPlusModuleVersion> |
|||
<AbpVersion>4.4.0</AbpVersion> |
|||
<EasyAbpAbpTreesModuleVersion>2.4.0</EasyAbpAbpTreesModuleVersion> |
|||
<EasyAbpPaymentServiceModuleVersion>1.10.3</EasyAbpPaymentServiceModuleVersion> |
|||
<EasyAbpAbpTagHelperPlusModuleVersion>0.7.1</EasyAbpAbpTagHelperPlusModuleVersion> |
|||
|
|||
</PropertyGroup> |
|||
</Project> |
|||
@ -1,63 +0,0 @@ |
|||
using System; |
|||
using Volo.Abp.Domain.Entities.Auditing; |
|||
using Volo.Abp.Users; |
|||
|
|||
namespace EShopSample.Users |
|||
{ |
|||
/* This entity shares the same table/collection ("AbpUsers" by default) with the |
|||
* IdentityUser entity of the Identity module. |
|||
* |
|||
* - You can define your custom properties into this class. |
|||
* - You never create or delete this entity, because it is Identity module's job. |
|||
* - You can query users from database with this entity. |
|||
* - You can update values of your custom properties. |
|||
*/ |
|||
public class AppUser : FullAuditedAggregateRoot<Guid>, IUser |
|||
{ |
|||
#region Base properties
|
|||
|
|||
/* These properties are shared with the IdentityUser entity of the Identity module. |
|||
* Do not change these properties through this class. Instead, use Identity module |
|||
* services (like IdentityUserManager) to change them. |
|||
* So, this properties are designed as read only! |
|||
*/ |
|||
|
|||
public virtual Guid? TenantId { get; private set; } |
|||
|
|||
public virtual string UserName { get; private set; } |
|||
|
|||
public virtual string Name { get; private set; } |
|||
|
|||
public virtual string Surname { get; private set; } |
|||
|
|||
public virtual string Email { get; private set; } |
|||
|
|||
public virtual bool EmailConfirmed { get; private set; } |
|||
|
|||
public virtual string PhoneNumber { get; private set; } |
|||
|
|||
public virtual bool PhoneNumberConfirmed { get; private set; } |
|||
|
|||
#endregion
|
|||
|
|||
/* Add your own properties here. Example: |
|||
* |
|||
* public string MyProperty { get; set; } |
|||
* |
|||
* If you add a property and using the EF Core, remember these; |
|||
* |
|||
* 1. Update EShopSampleDbContext.OnModelCreating |
|||
* to configure the mapping for your new property |
|||
* 2. Update EShopSampleEfCoreEntityExtensionMappings to extend the IdentityUser entity |
|||
* and add your new property to the migration. |
|||
* 3. Use the Add-Migration to add a new database migration. |
|||
* 4. Run the .DbMigrator project (or use the Update-Database command) to apply |
|||
* schema change to the database. |
|||
*/ |
|||
|
|||
private AppUser() |
|||
{ |
|||
|
|||
} |
|||
} |
|||
} |
|||
@ -1,25 +0,0 @@ |
|||
<Project Sdk="Microsoft.NET.Sdk"> |
|||
|
|||
<Import Project="..\..\common.props" /> |
|||
|
|||
<PropertyGroup> |
|||
<TargetFramework>net5.0</TargetFramework> |
|||
<RootNamespace>EShopSample</RootNamespace> |
|||
</PropertyGroup> |
|||
|
|||
<ItemGroup> |
|||
<Compile Remove="Migrations\20200517122756_UsedPaymentServiceModule.cs" /> |
|||
<Compile Remove="Migrations\20200517122756_UsedPaymentServiceModule.Designer.cs" /> |
|||
<Compile Remove="Migrations\20200517123312_UsedPaymentServiceModule.cs" /> |
|||
<Compile Remove="Migrations\20200517123312_UsedPaymentServiceModule.Designer.cs" /> |
|||
</ItemGroup> |
|||
|
|||
<ItemGroup> |
|||
<ProjectReference Include="..\EShopSample.EntityFrameworkCore\EShopSample.EntityFrameworkCore.csproj" /> |
|||
</ItemGroup> |
|||
|
|||
<ItemGroup> |
|||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="5.0.*" /> |
|||
</ItemGroup> |
|||
|
|||
</Project> |
|||
@ -1,16 +0,0 @@ |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
using Volo.Abp.Modularity; |
|||
|
|||
namespace EShopSample.EntityFrameworkCore |
|||
{ |
|||
[DependsOn( |
|||
typeof(EShopSampleEntityFrameworkCoreModule) |
|||
)] |
|||
public class EShopSampleEntityFrameworkCoreDbMigrationsModule : AbpModule |
|||
{ |
|||
public override void ConfigureServices(ServiceConfigurationContext context) |
|||
{ |
|||
context.Services.AddAbpDbContext<EShopSampleMigrationsDbContext>(); |
|||
} |
|||
} |
|||
} |
|||
@ -1,62 +0,0 @@ |
|||
using EasyAbp.EShop.EntityFrameworkCore; |
|||
using EasyAbp.EShop.Plugins.Baskets.EntityFrameworkCore; |
|||
using EasyAbp.EShop.Plugins.Coupons.EntityFrameworkCore; |
|||
using EasyAbp.PaymentService.EntityFrameworkCore; |
|||
using EasyAbp.PaymentService.Prepayment.EntityFrameworkCore; |
|||
using EasyAbp.PaymentService.WeChatPay.EntityFrameworkCore; |
|||
using Microsoft.EntityFrameworkCore; |
|||
using Volo.Abp.AuditLogging.EntityFrameworkCore; |
|||
using Volo.Abp.BackgroundJobs.EntityFrameworkCore; |
|||
using Volo.Abp.EntityFrameworkCore; |
|||
using Volo.Abp.FeatureManagement.EntityFrameworkCore; |
|||
using Volo.Abp.Identity.EntityFrameworkCore; |
|||
using Volo.Abp.IdentityServer.EntityFrameworkCore; |
|||
using Volo.Abp.PermissionManagement.EntityFrameworkCore; |
|||
using Volo.Abp.SettingManagement.EntityFrameworkCore; |
|||
using Volo.Abp.TenantManagement.EntityFrameworkCore; |
|||
|
|||
namespace EShopSample.EntityFrameworkCore |
|||
{ |
|||
/* This DbContext is only used for database migrations. |
|||
* It is not used on runtime. See EShopSampleDbContext for the runtime DbContext. |
|||
* It is a unified model that includes configuration for |
|||
* all used modules and your application. |
|||
*/ |
|||
public class EShopSampleMigrationsDbContext : AbpDbContext<EShopSampleMigrationsDbContext> |
|||
{ |
|||
public EShopSampleMigrationsDbContext(DbContextOptions<EShopSampleMigrationsDbContext> options) |
|||
: base(options) |
|||
{ |
|||
|
|||
} |
|||
|
|||
protected override void OnModelCreating(ModelBuilder builder) |
|||
{ |
|||
base.OnModelCreating(builder); |
|||
|
|||
/* Include modules to your migration db context */ |
|||
|
|||
builder.ConfigurePermissionManagement(); |
|||
builder.ConfigureSettingManagement(); |
|||
builder.ConfigureBackgroundJobs(); |
|||
builder.ConfigureAuditLogging(); |
|||
builder.ConfigureIdentity(); |
|||
builder.ConfigureIdentityServer(); |
|||
builder.ConfigureFeatureManagement(); |
|||
builder.ConfigureTenantManagement(); |
|||
|
|||
/* Configure your own tables/entities inside the ConfigureEShopSample method */ |
|||
|
|||
builder.ConfigureEShopSample(); |
|||
|
|||
builder.ConfigureEShop(); |
|||
|
|||
builder.ConfigureEShopPluginsBaskets(); |
|||
builder.ConfigureEShopPluginsCoupons(); |
|||
|
|||
builder.ConfigurePaymentService(); |
|||
builder.ConfigurePaymentServiceWeChatPay(); |
|||
builder.ConfigurePaymentServicePrepayment(); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
@ -1,51 +0,0 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class ChangedToSerializedEntityData : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "SerializedDto", |
|||
table: "EShopProductsProductHistories"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "SerializedDto", |
|||
table: "EShopProductsProductDetailHistories"); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "SerializedEntityData", |
|||
table: "EShopProductsProductHistories", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "SerializedEntityData", |
|||
table: "EShopProductsProductDetailHistories", |
|||
nullable: true); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "SerializedEntityData", |
|||
table: "EShopProductsProductHistories"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "SerializedEntityData", |
|||
table: "EShopProductsProductDetailHistories"); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "SerializedDto", |
|||
table: "EShopProductsProductHistories", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "SerializedDto", |
|||
table: "EShopProductsProductDetailHistories", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,32 +0,0 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class AddedPaymentAndRefundEntities : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AddColumn<Guid>( |
|||
name: "StoreId", |
|||
table: "PaymentServiceRefunds", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<Guid>( |
|||
name: "StoreId", |
|||
table: "PaymentServicePayments", |
|||
nullable: true); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "StoreId", |
|||
table: "PaymentServiceRefunds"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "StoreId", |
|||
table: "PaymentServicePayments"); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,143 +0,0 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class MadePaymentAndRefundExclusiveTableEntities : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "StoreId", |
|||
table: "PaymentServiceRefunds"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "StoreId", |
|||
table: "PaymentServicePayments"); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "EShopPaymentsPayments", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(nullable: false), |
|||
ExtraProperties = table.Column<string>(nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(nullable: true), |
|||
CreationTime = table.Column<DateTime>(nullable: false), |
|||
CreatorId = table.Column<Guid>(nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(nullable: true), |
|||
LastModifierId = table.Column<Guid>(nullable: true), |
|||
IsDeleted = table.Column<bool>(nullable: false, defaultValue: false), |
|||
DeleterId = table.Column<Guid>(nullable: true), |
|||
DeletionTime = table.Column<DateTime>(nullable: true), |
|||
TenantId = table.Column<Guid>(nullable: true), |
|||
UserId = table.Column<Guid>(nullable: false), |
|||
PaymentMethod = table.Column<string>(nullable: true), |
|||
PayeeAccount = table.Column<string>(nullable: true), |
|||
ExternalTradingCode = table.Column<string>(nullable: true), |
|||
Currency = table.Column<string>(nullable: true), |
|||
OriginalPaymentAmount = table.Column<decimal>(type: "decimal(18,6)", nullable: false), |
|||
PaymentDiscount = table.Column<decimal>(type: "decimal(18,6)", nullable: false), |
|||
ActualPaymentAmount = table.Column<decimal>(type: "decimal(18,6)", nullable: false), |
|||
RefundAmount = table.Column<decimal>(type: "decimal(18,6)", nullable: false), |
|||
CompletionTime = table.Column<DateTime>(nullable: true), |
|||
CancelledTime = table.Column<DateTime>(nullable: true), |
|||
StoreId = table.Column<Guid>(nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_EShopPaymentsPayments", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "EShopPaymentsRefunds", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(nullable: false), |
|||
ExtraProperties = table.Column<string>(nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(nullable: true), |
|||
CreationTime = table.Column<DateTime>(nullable: false), |
|||
CreatorId = table.Column<Guid>(nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(nullable: true), |
|||
LastModifierId = table.Column<Guid>(nullable: true), |
|||
IsDeleted = table.Column<bool>(nullable: false, defaultValue: false), |
|||
DeleterId = table.Column<Guid>(nullable: true), |
|||
DeletionTime = table.Column<DateTime>(nullable: true), |
|||
TenantId = table.Column<Guid>(nullable: true), |
|||
PaymentId = table.Column<Guid>(nullable: false), |
|||
PaymentItemId = table.Column<Guid>(nullable: false), |
|||
RefundPaymentMethod = table.Column<string>(nullable: true), |
|||
ExternalTradingCode = table.Column<string>(nullable: true), |
|||
Currency = table.Column<string>(nullable: true), |
|||
RefundAmount = table.Column<decimal>(type: "decimal(18,6)", nullable: false), |
|||
CustomerRemark = table.Column<string>(nullable: true), |
|||
StaffRemark = table.Column<string>(nullable: true), |
|||
StoreId = table.Column<Guid>(nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_EShopPaymentsRefunds", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "EShopPaymentsPaymentItems", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(nullable: false), |
|||
CreationTime = table.Column<DateTime>(nullable: false), |
|||
CreatorId = table.Column<Guid>(nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(nullable: true), |
|||
LastModifierId = table.Column<Guid>(nullable: true), |
|||
IsDeleted = table.Column<bool>(nullable: false, defaultValue: false), |
|||
DeleterId = table.Column<Guid>(nullable: true), |
|||
DeletionTime = table.Column<DateTime>(nullable: true), |
|||
ItemType = table.Column<string>(nullable: true), |
|||
ItemKey = table.Column<Guid>(nullable: false), |
|||
Currency = table.Column<string>(nullable: true), |
|||
OriginalPaymentAmount = table.Column<decimal>(type: "decimal(18,6)", nullable: false), |
|||
PaymentDiscount = table.Column<decimal>(type: "decimal(18,6)", nullable: false), |
|||
ActualPaymentAmount = table.Column<decimal>(type: "decimal(18,6)", nullable: false), |
|||
RefundAmount = table.Column<decimal>(type: "decimal(18,6)", nullable: false), |
|||
PaymentId = table.Column<Guid>(nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_EShopPaymentsPaymentItems", x => x.Id); |
|||
table.ForeignKey( |
|||
name: "FK_EShopPaymentsPaymentItems_EShopPaymentsPayments_PaymentId", |
|||
column: x => x.PaymentId, |
|||
principalTable: "EShopPaymentsPayments", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Restrict); |
|||
}); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_EShopPaymentsPaymentItems_PaymentId", |
|||
table: "EShopPaymentsPaymentItems", |
|||
column: "PaymentId"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "EShopPaymentsPaymentItems"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "EShopPaymentsRefunds"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "EShopPaymentsPayments"); |
|||
|
|||
migrationBuilder.AddColumn<Guid>( |
|||
name: "StoreId", |
|||
table: "PaymentServiceRefunds", |
|||
type: "uniqueidentifier", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<Guid>( |
|||
name: "StoreId", |
|||
table: "PaymentServicePayments", |
|||
type: "uniqueidentifier", |
|||
nullable: true); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,127 +0,0 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class UpgradedToAbp2_9_0 : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.CreateTable( |
|||
name: "AbpOrganizationUnits", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(nullable: false), |
|||
ExtraProperties = table.Column<string>(nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(nullable: true), |
|||
CreationTime = table.Column<DateTime>(nullable: false), |
|||
CreatorId = table.Column<Guid>(nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(nullable: true), |
|||
LastModifierId = table.Column<Guid>(nullable: true), |
|||
IsDeleted = table.Column<bool>(nullable: false, defaultValue: false), |
|||
DeleterId = table.Column<Guid>(nullable: true), |
|||
DeletionTime = table.Column<DateTime>(nullable: true), |
|||
TenantId = table.Column<Guid>(nullable: true), |
|||
ParentId = table.Column<Guid>(nullable: true), |
|||
Code = table.Column<string>(maxLength: 95, nullable: false), |
|||
DisplayName = table.Column<string>(maxLength: 128, nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_AbpOrganizationUnits", x => x.Id); |
|||
table.ForeignKey( |
|||
name: "FK_AbpOrganizationUnits_AbpOrganizationUnits_ParentId", |
|||
column: x => x.ParentId, |
|||
principalTable: "AbpOrganizationUnits", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Restrict); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "AbpOrganizationUnitRoles", |
|||
columns: table => new |
|||
{ |
|||
RoleId = table.Column<Guid>(nullable: false), |
|||
OrganizationUnitId = table.Column<Guid>(nullable: false), |
|||
CreationTime = table.Column<DateTime>(nullable: false), |
|||
CreatorId = table.Column<Guid>(nullable: true), |
|||
TenantId = table.Column<Guid>(nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_AbpOrganizationUnitRoles", x => new { x.OrganizationUnitId, x.RoleId }); |
|||
table.ForeignKey( |
|||
name: "FK_AbpOrganizationUnitRoles_AbpOrganizationUnits_OrganizationUnitId", |
|||
column: x => x.OrganizationUnitId, |
|||
principalTable: "AbpOrganizationUnits", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
table.ForeignKey( |
|||
name: "FK_AbpOrganizationUnitRoles_AbpRoles_RoleId", |
|||
column: x => x.RoleId, |
|||
principalTable: "AbpRoles", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "AbpUserOrganizationUnits", |
|||
columns: table => new |
|||
{ |
|||
UserId = table.Column<Guid>(nullable: false), |
|||
OrganizationUnitId = table.Column<Guid>(nullable: false), |
|||
CreationTime = table.Column<DateTime>(nullable: false), |
|||
CreatorId = table.Column<Guid>(nullable: true), |
|||
TenantId = table.Column<Guid>(nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_AbpUserOrganizationUnits", x => new { x.OrganizationUnitId, x.UserId }); |
|||
table.ForeignKey( |
|||
name: "FK_AbpUserOrganizationUnits_AbpOrganizationUnits_OrganizationUnitId", |
|||
column: x => x.OrganizationUnitId, |
|||
principalTable: "AbpOrganizationUnits", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
table.ForeignKey( |
|||
name: "FK_AbpUserOrganizationUnits_AbpUsers_UserId", |
|||
column: x => x.UserId, |
|||
principalTable: "AbpUsers", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
}); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_AbpOrganizationUnitRoles_RoleId_OrganizationUnitId", |
|||
table: "AbpOrganizationUnitRoles", |
|||
columns: new[] { "RoleId", "OrganizationUnitId" }); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_AbpOrganizationUnits_Code", |
|||
table: "AbpOrganizationUnits", |
|||
column: "Code"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_AbpOrganizationUnits_ParentId", |
|||
table: "AbpOrganizationUnits", |
|||
column: "ParentId"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_AbpUserOrganizationUnits_UserId_OrganizationUnitId", |
|||
table: "AbpUserOrganizationUnits", |
|||
columns: new[] { "UserId", "OrganizationUnitId" }); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "AbpOrganizationUnitRoles"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "AbpUserOrganizationUnits"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "AbpOrganizationUnits"); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,33 +0,0 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class AddedOrderNumberProperty : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AddColumn<string>( |
|||
name: "OrderNumber", |
|||
table: "EShopOrdersOrders", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_EShopOrdersOrders_OrderNumber", |
|||
table: "EShopOrdersOrders", |
|||
column: "OrderNumber", |
|||
unique: true, |
|||
filter: "[OrderNumber] IS NOT NULL"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropIndex( |
|||
name: "IX_EShopOrdersOrders_OrderNumber", |
|||
table: "EShopOrdersOrders"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "OrderNumber", |
|||
table: "EShopOrdersOrders"); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,23 +0,0 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class AddedOrderMaxQuantityProperty : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AddColumn<int>( |
|||
name: "OrderMaxQuantity", |
|||
table: "EShopProductsProductSkus", |
|||
nullable: false, |
|||
defaultValue: 0); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "OrderMaxQuantity", |
|||
table: "EShopProductsProductSkus"); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,303 +0,0 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class ChangedMoneyToDecimal20_8 : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "Price", |
|||
table: "EShopProductsProductSkus", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "OriginalPrice", |
|||
table: "EShopProductsProductSkus", |
|||
type: "decimal(20,8)", |
|||
nullable: true, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "RefundAmount", |
|||
table: "EShopPaymentsRefunds", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "RefundAmount", |
|||
table: "EShopPaymentsPayments", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "PaymentDiscount", |
|||
table: "EShopPaymentsPayments", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "OriginalPaymentAmount", |
|||
table: "EShopPaymentsPayments", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "ActualPaymentAmount", |
|||
table: "EShopPaymentsPayments", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "RefundAmount", |
|||
table: "EShopPaymentsPaymentItems", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "PaymentDiscount", |
|||
table: "EShopPaymentsPaymentItems", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "OriginalPaymentAmount", |
|||
table: "EShopPaymentsPaymentItems", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "ActualPaymentAmount", |
|||
table: "EShopPaymentsPaymentItems", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "TotalPrice", |
|||
table: "EShopOrdersOrders", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "TotalDiscount", |
|||
table: "EShopOrdersOrders", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "RefundedAmount", |
|||
table: "EShopOrdersOrders", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "ProductTotalPrice", |
|||
table: "EShopOrdersOrders", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "UnitPrice", |
|||
table: "EShopOrdersOrderLines", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "TotalPrice", |
|||
table: "EShopOrdersOrderLines", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "TotalDiscount", |
|||
table: "EShopOrdersOrderLines", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "Price", |
|||
table: "EShopProductsProductSkus", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "OriginalPrice", |
|||
table: "EShopProductsProductSkus", |
|||
type: "decimal(18,6)", |
|||
nullable: true, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "RefundAmount", |
|||
table: "EShopPaymentsRefunds", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "RefundAmount", |
|||
table: "EShopPaymentsPayments", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "PaymentDiscount", |
|||
table: "EShopPaymentsPayments", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "OriginalPaymentAmount", |
|||
table: "EShopPaymentsPayments", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "ActualPaymentAmount", |
|||
table: "EShopPaymentsPayments", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "RefundAmount", |
|||
table: "EShopPaymentsPaymentItems", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "PaymentDiscount", |
|||
table: "EShopPaymentsPaymentItems", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "OriginalPaymentAmount", |
|||
table: "EShopPaymentsPaymentItems", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "ActualPaymentAmount", |
|||
table: "EShopPaymentsPaymentItems", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "TotalPrice", |
|||
table: "EShopOrdersOrders", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "TotalDiscount", |
|||
table: "EShopOrdersOrders", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "RefundedAmount", |
|||
table: "EShopOrdersOrders", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "ProductTotalPrice", |
|||
table: "EShopOrdersOrders", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "UnitPrice", |
|||
table: "EShopOrdersOrderLines", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "TotalPrice", |
|||
table: "EShopOrdersOrderLines", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "TotalDiscount", |
|||
table: "EShopOrdersOrderLines", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,63 +0,0 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class UsedEasyAbpTreesModule : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AddColumn<string>( |
|||
name: "Code", |
|||
table: "EShopProductsCategories", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<int>( |
|||
name: "Level", |
|||
table: "EShopProductsCategories", |
|||
nullable: false, |
|||
defaultValue: 0); |
|||
|
|||
migrationBuilder.AddColumn<Guid>( |
|||
name: "ParentId", |
|||
table: "EShopProductsCategories", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_EShopProductsCategories_ParentId", |
|||
table: "EShopProductsCategories", |
|||
column: "ParentId"); |
|||
|
|||
migrationBuilder.AddForeignKey( |
|||
name: "FK_EShopProductsCategories_EShopProductsCategories_ParentId", |
|||
table: "EShopProductsCategories", |
|||
column: "ParentId", |
|||
principalTable: "EShopProductsCategories", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Restrict); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropForeignKey( |
|||
name: "FK_EShopProductsCategories_EShopProductsCategories_ParentId", |
|||
table: "EShopProductsCategories"); |
|||
|
|||
migrationBuilder.DropIndex( |
|||
name: "IX_EShopProductsCategories_ParentId", |
|||
table: "EShopProductsCategories"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "Code", |
|||
table: "EShopProductsCategories"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "Level", |
|||
table: "EShopProductsCategories"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ParentId", |
|||
table: "EShopProductsCategories"); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,219 +0,0 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class UpgradedPaymentServiceModuleTo0_3_7 : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "NonceStr", |
|||
table: "PaymentServiceWeChatPayRefundRecords"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ReqInfo", |
|||
table: "PaymentServiceWeChatPayRefundRecords"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "NonceStr", |
|||
table: "PaymentServiceWeChatPayPaymentRecords"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "Sign", |
|||
table: "PaymentServiceWeChatPayPaymentRecords"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "SignType", |
|||
table: "PaymentServiceWeChatPayPaymentRecords"); |
|||
|
|||
migrationBuilder.AlterColumn<int>( |
|||
name: "SettlementRefundFee", |
|||
table: "PaymentServiceWeChatPayRefundRecords", |
|||
nullable: true, |
|||
oldClrType: typeof(int), |
|||
oldType: "int"); |
|||
|
|||
migrationBuilder.AddColumn<int>( |
|||
name: "CashFee", |
|||
table: "PaymentServiceWeChatPayRefundRecords", |
|||
nullable: false, |
|||
defaultValue: 0); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "CashFeeType", |
|||
table: "PaymentServiceWeChatPayRefundRecords", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<int>( |
|||
name: "CashRefundFee", |
|||
table: "PaymentServiceWeChatPayRefundRecords", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "CouponIds", |
|||
table: "PaymentServiceWeChatPayRefundRecords", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<int>( |
|||
name: "CouponRefundCount", |
|||
table: "PaymentServiceWeChatPayRefundRecords", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<int>( |
|||
name: "CouponRefundFee", |
|||
table: "PaymentServiceWeChatPayRefundRecords", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "CouponRefundFees", |
|||
table: "PaymentServiceWeChatPayRefundRecords", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "CouponTypes", |
|||
table: "PaymentServiceWeChatPayRefundRecords", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "FeeType", |
|||
table: "PaymentServiceWeChatPayRefundRecords", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<DateTime>( |
|||
name: "CancelledTime", |
|||
table: "PaymentServiceRefunds", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<DateTime>( |
|||
name: "CompletedTime", |
|||
table: "PaymentServiceRefunds", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<decimal>( |
|||
name: "PendingRefundAmount", |
|||
table: "PaymentServicePayments", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
defaultValue: 0m); |
|||
|
|||
migrationBuilder.AddColumn<decimal>( |
|||
name: "PendingRefundAmount", |
|||
table: "PaymentServicePaymentItems", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
defaultValue: 0m); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_PaymentServiceWeChatPayRefundRecords_PaymentId", |
|||
table: "PaymentServiceWeChatPayRefundRecords", |
|||
column: "PaymentId"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_PaymentServiceWeChatPayPaymentRecords_PaymentId", |
|||
table: "PaymentServiceWeChatPayPaymentRecords", |
|||
column: "PaymentId"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropIndex( |
|||
name: "IX_PaymentServiceWeChatPayRefundRecords_PaymentId", |
|||
table: "PaymentServiceWeChatPayRefundRecords"); |
|||
|
|||
migrationBuilder.DropIndex( |
|||
name: "IX_PaymentServiceWeChatPayPaymentRecords_PaymentId", |
|||
table: "PaymentServiceWeChatPayPaymentRecords"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "CashFee", |
|||
table: "PaymentServiceWeChatPayRefundRecords"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "CashFeeType", |
|||
table: "PaymentServiceWeChatPayRefundRecords"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "CashRefundFee", |
|||
table: "PaymentServiceWeChatPayRefundRecords"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "CouponIds", |
|||
table: "PaymentServiceWeChatPayRefundRecords"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "CouponRefundCount", |
|||
table: "PaymentServiceWeChatPayRefundRecords"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "CouponRefundFee", |
|||
table: "PaymentServiceWeChatPayRefundRecords"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "CouponRefundFees", |
|||
table: "PaymentServiceWeChatPayRefundRecords"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "CouponTypes", |
|||
table: "PaymentServiceWeChatPayRefundRecords"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "FeeType", |
|||
table: "PaymentServiceWeChatPayRefundRecords"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "CancelledTime", |
|||
table: "PaymentServiceRefunds"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "CompletedTime", |
|||
table: "PaymentServiceRefunds"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "PendingRefundAmount", |
|||
table: "PaymentServicePayments"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "PendingRefundAmount", |
|||
table: "PaymentServicePaymentItems"); |
|||
|
|||
migrationBuilder.AlterColumn<int>( |
|||
name: "SettlementRefundFee", |
|||
table: "PaymentServiceWeChatPayRefundRecords", |
|||
type: "int", |
|||
nullable: false, |
|||
oldClrType: typeof(int), |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "NonceStr", |
|||
table: "PaymentServiceWeChatPayRefundRecords", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ReqInfo", |
|||
table: "PaymentServiceWeChatPayRefundRecords", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "NonceStr", |
|||
table: "PaymentServiceWeChatPayPaymentRecords", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "Sign", |
|||
table: "PaymentServiceWeChatPayPaymentRecords", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "SignType", |
|||
table: "PaymentServiceWeChatPayPaymentRecords", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,52 +0,0 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class AddedMissingPropertiesInPaymentAndRefund : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AddColumn<DateTime>( |
|||
name: "CancelledTime", |
|||
table: "EShopPaymentsRefunds", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<DateTime>( |
|||
name: "CompletedTime", |
|||
table: "EShopPaymentsRefunds", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<decimal>( |
|||
name: "PendingRefundAmount", |
|||
table: "EShopPaymentsPayments", |
|||
nullable: false, |
|||
defaultValue: 0m); |
|||
|
|||
migrationBuilder.AddColumn<decimal>( |
|||
name: "PendingRefundAmount", |
|||
table: "EShopPaymentsPaymentItems", |
|||
nullable: false, |
|||
defaultValue: 0m); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "CancelledTime", |
|||
table: "EShopPaymentsRefunds"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "CompletedTime", |
|||
table: "EShopPaymentsRefunds"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "PendingRefundAmount", |
|||
table: "EShopPaymentsPayments"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "PendingRefundAmount", |
|||
table: "EShopPaymentsPaymentItems"); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,45 +0,0 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class AddedColumnTypeOfPendingRefundAmount : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "PendingRefundAmount", |
|||
table: "EShopPaymentsPayments", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,2)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "PendingRefundAmount", |
|||
table: "EShopPaymentsPaymentItems", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,2)"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "PendingRefundAmount", |
|||
table: "EShopPaymentsPayments", |
|||
type: "decimal(18,2)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "PendingRefundAmount", |
|||
table: "EShopPaymentsPaymentItems", |
|||
type: "decimal(18,2)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,64 +0,0 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class RenamedCancelledToCanceled : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.RenameColumn( |
|||
name: "CancelledTime", |
|||
table: "PaymentServiceRefunds", |
|||
newName: "CanceledTime"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "CancelledTime", |
|||
table: "PaymentServicePayments", |
|||
newName: "CanceledTime"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "CancelledTime", |
|||
table: "EShopPaymentsRefunds", |
|||
newName: "CanceledTime"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "CancelledTime", |
|||
table: "EShopPaymentsPayments", |
|||
newName: "CanceledTime"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "CancelledTime", |
|||
table: "EShopOrdersOrders", |
|||
newName: "CanceledTime"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.RenameColumn( |
|||
name: "CanceledTime", |
|||
table: "PaymentServiceRefunds", |
|||
newName: "CancelledTime"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "CanceledTime", |
|||
table: "PaymentServicePayments", |
|||
newName: "CancelledTime"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "CanceledTime", |
|||
table: "EShopPaymentsRefunds", |
|||
newName: "CancelledTime"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "CanceledTime", |
|||
table: "EShopPaymentsPayments", |
|||
newName: "CancelledTime"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "CanceledTime", |
|||
table: "EShopOrdersOrders", |
|||
newName: "CancelledTime"); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,519 +0,0 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class UpgradedAbpTo3_0_0 : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "PaymentServiceWeChatPayRefundRecords", |
|||
maxLength: 40, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(max)", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "PaymentServiceWeChatPayPaymentRecords", |
|||
maxLength: 40, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(max)", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "PaymentServiceRefunds", |
|||
maxLength: 40, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(max)", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "PaymentServicePayments", |
|||
maxLength: 40, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(max)", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "IdentityServerPersistedGrants", |
|||
maxLength: 40, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(max)", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "IdentityServerIdentityResources", |
|||
maxLength: 40, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(max)", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "IdentityServerDeviceFlowCodes", |
|||
maxLength: 40, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(max)", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "IdentityServerClients", |
|||
maxLength: 40, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(max)", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "IdentityServerApiResources", |
|||
maxLength: 40, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(max)", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "EShopStoresStores", |
|||
maxLength: 40, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(max)", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "EShopProductsProductTypes", |
|||
maxLength: 40, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(max)", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "EShopProductsProductStores", |
|||
maxLength: 40, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(max)", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "EShopProductsProducts", |
|||
maxLength: 40, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(max)", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "EShopProductsProductHistories", |
|||
maxLength: 40, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(max)", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "EShopProductsProductDetails", |
|||
maxLength: 40, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(max)", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "EShopProductsProductDetailHistories", |
|||
maxLength: 40, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(max)", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "EShopProductsProductCategories", |
|||
maxLength: 40, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(max)", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "EShopProductsCategories", |
|||
maxLength: 40, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(max)", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "EShopPaymentsRefunds", |
|||
maxLength: 40, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(max)", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "EShopPaymentsPayments", |
|||
maxLength: 40, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(max)", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "EShopOrdersOrders", |
|||
maxLength: 40, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(max)", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "AbpUsers", |
|||
maxLength: 40, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(max)", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "AbpTenants", |
|||
maxLength: 40, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(max)", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "AbpRoles", |
|||
maxLength: 40, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(256)", |
|||
oldMaxLength: 256); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "AbpOrganizationUnits", |
|||
maxLength: 40, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(max)", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "AbpClaimTypes", |
|||
maxLength: 40, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(256)", |
|||
oldMaxLength: 256); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "AbpBackgroundJobs", |
|||
maxLength: 40, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(max)", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "AbpAuditLogs", |
|||
maxLength: 40, |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(max)", |
|||
oldNullable: true); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "PaymentServiceWeChatPayRefundRecords", |
|||
type: "nvarchar(max)", |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldMaxLength: 40, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "PaymentServiceWeChatPayPaymentRecords", |
|||
type: "nvarchar(max)", |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldMaxLength: 40, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "PaymentServiceRefunds", |
|||
type: "nvarchar(max)", |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldMaxLength: 40, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "PaymentServicePayments", |
|||
type: "nvarchar(max)", |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldMaxLength: 40, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "IdentityServerPersistedGrants", |
|||
type: "nvarchar(max)", |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldMaxLength: 40, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "IdentityServerIdentityResources", |
|||
type: "nvarchar(max)", |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldMaxLength: 40, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "IdentityServerDeviceFlowCodes", |
|||
type: "nvarchar(max)", |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldMaxLength: 40, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "IdentityServerClients", |
|||
type: "nvarchar(max)", |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldMaxLength: 40, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "IdentityServerApiResources", |
|||
type: "nvarchar(max)", |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldMaxLength: 40, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "EShopStoresStores", |
|||
type: "nvarchar(max)", |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldMaxLength: 40, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "EShopProductsProductTypes", |
|||
type: "nvarchar(max)", |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldMaxLength: 40, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "EShopProductsProductStores", |
|||
type: "nvarchar(max)", |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldMaxLength: 40, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "EShopProductsProducts", |
|||
type: "nvarchar(max)", |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldMaxLength: 40, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "EShopProductsProductHistories", |
|||
type: "nvarchar(max)", |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldMaxLength: 40, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "EShopProductsProductDetails", |
|||
type: "nvarchar(max)", |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldMaxLength: 40, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "EShopProductsProductDetailHistories", |
|||
type: "nvarchar(max)", |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldMaxLength: 40, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "EShopProductsProductCategories", |
|||
type: "nvarchar(max)", |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldMaxLength: 40, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "EShopProductsCategories", |
|||
type: "nvarchar(max)", |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldMaxLength: 40, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "EShopPaymentsRefunds", |
|||
type: "nvarchar(max)", |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldMaxLength: 40, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "EShopPaymentsPayments", |
|||
type: "nvarchar(max)", |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldMaxLength: 40, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "EShopOrdersOrders", |
|||
type: "nvarchar(max)", |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldMaxLength: 40, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "AbpUsers", |
|||
type: "nvarchar(max)", |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldMaxLength: 40, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "AbpTenants", |
|||
type: "nvarchar(max)", |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldMaxLength: 40, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "AbpRoles", |
|||
type: "nvarchar(256)", |
|||
maxLength: 256, |
|||
nullable: false, |
|||
oldClrType: typeof(string), |
|||
oldMaxLength: 40, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "AbpOrganizationUnits", |
|||
type: "nvarchar(max)", |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldMaxLength: 40, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "AbpClaimTypes", |
|||
type: "nvarchar(256)", |
|||
maxLength: 256, |
|||
nullable: false, |
|||
oldClrType: typeof(string), |
|||
oldMaxLength: 40, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "AbpBackgroundJobs", |
|||
type: "nvarchar(max)", |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldMaxLength: 40, |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ConcurrencyStamp", |
|||
table: "AbpAuditLogs", |
|||
type: "nvarchar(max)", |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldMaxLength: 40, |
|||
oldNullable: true); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,59 +0,0 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class AddedMediaResourcesToProductSku : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AddColumn<string>( |
|||
name: "MediaResources", |
|||
table: "EShopProductsProductSkus", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "EShopPluginsBasketsBasketItems", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(nullable: false), |
|||
ExtraProperties = table.Column<string>(nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(maxLength: 40, nullable: true), |
|||
CreationTime = table.Column<DateTime>(nullable: false), |
|||
CreatorId = table.Column<Guid>(nullable: true), |
|||
TenantId = table.Column<Guid>(nullable: true), |
|||
BasketName = table.Column<string>(nullable: true), |
|||
UserId = table.Column<Guid>(nullable: false), |
|||
ProductId = table.Column<Guid>(nullable: false), |
|||
ProductSkuId = table.Column<Guid>(nullable: false), |
|||
Quantity = table.Column<int>(nullable: false), |
|||
MediaResources = table.Column<string>(nullable: true), |
|||
ProductName = table.Column<string>(nullable: true), |
|||
SkuDescription = table.Column<string>(nullable: true), |
|||
Currency = table.Column<string>(nullable: true), |
|||
UnitPrice = table.Column<decimal>(nullable: false), |
|||
TotalPrice = table.Column<decimal>(nullable: false), |
|||
TotalDiscount = table.Column<decimal>(nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_EShopPluginsBasketsBasketItems", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_EShopPluginsBasketsBasketItems_UserId", |
|||
table: "EShopPluginsBasketsBasketItems", |
|||
column: "UserId"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "EShopPluginsBasketsBasketItems"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "MediaResources", |
|||
table: "EShopProductsProductSkus"); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,61 +0,0 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class AddedDecimalConfigurationsToBasketItem : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "UnitPrice", |
|||
table: "EShopPluginsBasketsBasketItems", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,2)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "TotalPrice", |
|||
table: "EShopPluginsBasketsBasketItems", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,2)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "TotalDiscount", |
|||
table: "EShopPluginsBasketsBasketItems", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,2)"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "UnitPrice", |
|||
table: "EShopPluginsBasketsBasketItems", |
|||
type: "decimal(18,2)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "TotalPrice", |
|||
table: "EShopPluginsBasketsBasketItems", |
|||
type: "decimal(18,2)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "TotalDiscount", |
|||
table: "EShopPluginsBasketsBasketItems", |
|||
type: "decimal(18,2)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,24 +0,0 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class AddedStoreIdToBasketItem : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AddColumn<Guid>( |
|||
name: "StoreId", |
|||
table: "EShopPluginsBasketsBasketItems", |
|||
nullable: false, |
|||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000")); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "StoreId", |
|||
table: "EShopPluginsBasketsBasketItems"); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,44 +0,0 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class CreatedProductUpdateEntity : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.CreateTable( |
|||
name: "EShopPluginsBasketsProductUpdates", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(nullable: false), |
|||
ExtraProperties = table.Column<string>(nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(maxLength: 40, nullable: true), |
|||
CreationTime = table.Column<DateTime>(nullable: false), |
|||
CreatorId = table.Column<Guid>(nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(nullable: true), |
|||
LastModifierId = table.Column<Guid>(nullable: true), |
|||
IsDeleted = table.Column<bool>(nullable: false, defaultValue: false), |
|||
DeleterId = table.Column<Guid>(nullable: true), |
|||
DeletionTime = table.Column<DateTime>(nullable: true), |
|||
TenantId = table.Column<Guid>(nullable: true), |
|||
ProductSkuId = table.Column<Guid>(nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_EShopPluginsBasketsProductUpdates", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_EShopPluginsBasketsProductUpdates_ProductSkuId", |
|||
table: "EShopPluginsBasketsProductUpdates", |
|||
column: "ProductSkuId"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "EShopPluginsBasketsProductUpdates"); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,32 +0,0 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class ChangeBasketItemToAuditedEntity : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AddColumn<DateTime>( |
|||
name: "LastModificationTime", |
|||
table: "EShopPluginsBasketsBasketItems", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<Guid>( |
|||
name: "LastModifierId", |
|||
table: "EShopPluginsBasketsBasketItems", |
|||
nullable: true); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "LastModificationTime", |
|||
table: "EShopPluginsBasketsBasketItems"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "LastModifierId", |
|||
table: "EShopPluginsBasketsBasketItems"); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,33 +0,0 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class AddInventoryAndIsInvalidToBasketItem : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AddColumn<int>( |
|||
name: "Inventory", |
|||
table: "EShopPluginsBasketsBasketItems", |
|||
nullable: false, |
|||
defaultValue: 0); |
|||
|
|||
migrationBuilder.AddColumn<bool>( |
|||
name: "IsInvalid", |
|||
table: "EShopPluginsBasketsBasketItems", |
|||
nullable: false, |
|||
defaultValue: false); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "Inventory", |
|||
table: "EShopPluginsBasketsBasketItems"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "IsInvalid", |
|||
table: "EShopPluginsBasketsBasketItems"); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,24 +0,0 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class RemoveTenantIdFromProductUpdate : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "TenantId", |
|||
table: "EShopPluginsBasketsProductUpdates"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AddColumn<Guid>( |
|||
name: "TenantId", |
|||
table: "EShopPluginsBasketsProductUpdates", |
|||
type: "uniqueidentifier", |
|||
nullable: true); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,68 +0,0 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class RedesignedInventory : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "Inventory", |
|||
table: "EShopProductsProductSkus"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "Sold", |
|||
table: "EShopProductsProductSkus"); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "EShopProductsProductInventories", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(nullable: false), |
|||
ExtraProperties = table.Column<string>(nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(maxLength: 40, nullable: true), |
|||
CreationTime = table.Column<DateTime>(nullable: false), |
|||
CreatorId = table.Column<Guid>(nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(nullable: true), |
|||
LastModifierId = table.Column<Guid>(nullable: true), |
|||
IsDeleted = table.Column<bool>(nullable: false, defaultValue: false), |
|||
DeleterId = table.Column<Guid>(nullable: true), |
|||
DeletionTime = table.Column<DateTime>(nullable: true), |
|||
ProductId = table.Column<Guid>(nullable: false), |
|||
ProductSkuId = table.Column<Guid>(nullable: false), |
|||
Inventory = table.Column<int>(nullable: false), |
|||
Sold = table.Column<int>(nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_EShopProductsProductInventories", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_EShopProductsProductInventories_ProductSkuId", |
|||
table: "EShopProductsProductInventories", |
|||
column: "ProductSkuId"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "EShopProductsProductInventories"); |
|||
|
|||
migrationBuilder.AddColumn<int>( |
|||
name: "Inventory", |
|||
table: "EShopProductsProductSkus", |
|||
type: "int", |
|||
nullable: false, |
|||
defaultValue: 0); |
|||
|
|||
migrationBuilder.AddColumn<int>( |
|||
name: "Sold", |
|||
table: "EShopProductsProductSkus", |
|||
type: "int", |
|||
nullable: false, |
|||
defaultValue: 0); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,31 +0,0 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class AddedSpecifiedInventoryProviderName : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AddColumn<string>( |
|||
name: "SpecifiedInventoryProviderName", |
|||
table: "EShopProductsProductSkus", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "SpecifiedInventoryProviderName", |
|||
table: "EShopProductsProducts", |
|||
nullable: true); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "SpecifiedInventoryProviderName", |
|||
table: "EShopProductsProductSkus"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "SpecifiedInventoryProviderName", |
|||
table: "EShopProductsProducts"); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,27 +0,0 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class ChangedSoldToLong : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AlterColumn<long>( |
|||
name: "Sold", |
|||
table: "EShopProductsProductInventories", |
|||
nullable: false, |
|||
oldClrType: typeof(int), |
|||
oldType: "int"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AlterColumn<int>( |
|||
name: "Sold", |
|||
table: "EShopProductsProductInventories", |
|||
type: "int", |
|||
nullable: false, |
|||
oldClrType: typeof(long)); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,22 +0,0 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class AddedProductTypeNameToOrderLine : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ProductTypeName", |
|||
table: "EShopOrdersOrderLines", |
|||
nullable: true); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "ProductTypeName", |
|||
table: "EShopOrdersOrderLines"); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,33 +0,0 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class AddedNameAndRemovedParentCategoryId : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "ParentCategoryId", |
|||
table: "EShopProductsCategories"); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "Name", |
|||
table: "EShopProductsCategories", |
|||
nullable: true); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "Name", |
|||
table: "EShopProductsCategories"); |
|||
|
|||
migrationBuilder.AddColumn<Guid>( |
|||
name: "ParentCategoryId", |
|||
table: "EShopProductsCategories", |
|||
type: "uniqueidentifier", |
|||
nullable: true); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,33 +0,0 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class RenamedCodeToName : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.RenameColumn( |
|||
name: "Code", |
|||
newName: "Name", |
|||
table: "EShopProductsProductSkus"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "Code", |
|||
newName: "UniqueName", |
|||
table: "EShopProductsProducts"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.RenameColumn( |
|||
name: "Name", |
|||
newName: "Code", |
|||
table: "EShopProductsProductSkus"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "UniqueName", |
|||
newName: "Code", |
|||
table: "EShopProductsProducts"); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,40 +0,0 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class MadeUniqueNameUniqueIndex : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "UniqueName", |
|||
table: "EShopProductsProducts", |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(max)", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_EShopProductsProducts_UniqueName", |
|||
table: "EShopProductsProducts", |
|||
column: "UniqueName", |
|||
unique: true, |
|||
filter: "[UniqueName] IS NOT NULL"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropIndex( |
|||
name: "IX_EShopProductsProducts_UniqueName", |
|||
table: "EShopProductsProducts"); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "UniqueName", |
|||
table: "EShopProductsProducts", |
|||
type: "nvarchar(max)", |
|||
nullable: true, |
|||
oldClrType: typeof(string), |
|||
oldNullable: true); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,43 +0,0 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class RenamedNameToUniqueNameInCategory : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "Name", |
|||
table: "EShopProductsCategories"); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "UniqueName", |
|||
table: "EShopProductsCategories", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_EShopProductsCategories_UniqueName", |
|||
table: "EShopProductsCategories", |
|||
column: "UniqueName", |
|||
unique: true, |
|||
filter: "[UniqueName] IS NOT NULL"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropIndex( |
|||
name: "IX_EShopProductsCategories_UniqueName", |
|||
table: "EShopProductsCategories"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "UniqueName", |
|||
table: "EShopProductsCategories"); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "Name", |
|||
table: "EShopProductsCategories", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,107 +0,0 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class RenamedNameToUniqueName : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "Name", |
|||
table: "EShopProductsProductTypes"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ProductName", |
|||
table: "EShopPluginsBasketsBasketItems"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ProductName", |
|||
table: "EShopOrdersOrderLines"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ProductTypeName", |
|||
table: "EShopOrdersOrderLines"); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "UniqueName", |
|||
table: "EShopProductsProductTypes", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ProductDisplayName", |
|||
table: "EShopPluginsBasketsBasketItems", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ProductUniqueName", |
|||
table: "EShopPluginsBasketsBasketItems", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ProductDisplayName", |
|||
table: "EShopOrdersOrderLines", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ProductTypeUniqueName", |
|||
table: "EShopOrdersOrderLines", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ProductUniqueName", |
|||
table: "EShopOrdersOrderLines", |
|||
nullable: true); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "UniqueName", |
|||
table: "EShopProductsProductTypes"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ProductDisplayName", |
|||
table: "EShopPluginsBasketsBasketItems"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ProductUniqueName", |
|||
table: "EShopPluginsBasketsBasketItems"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ProductDisplayName", |
|||
table: "EShopOrdersOrderLines"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ProductTypeUniqueName", |
|||
table: "EShopOrdersOrderLines"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ProductUniqueName", |
|||
table: "EShopOrdersOrderLines"); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "Name", |
|||
table: "EShopProductsProductTypes", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ProductName", |
|||
table: "EShopPluginsBasketsBasketItems", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ProductName", |
|||
table: "EShopOrdersOrderLines", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ProductTypeName", |
|||
table: "EShopOrdersOrderLines", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,31 +0,0 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class AddedSkuName : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AddColumn<string>( |
|||
name: "SkuName", |
|||
table: "EShopPluginsBasketsBasketItems", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "SkuName", |
|||
table: "EShopOrdersOrderLines", |
|||
nullable: true); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "SkuName", |
|||
table: "EShopPluginsBasketsBasketItems"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "SkuName", |
|||
table: "EShopOrdersOrderLines"); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,43 +0,0 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class MovedStoreIdFromPaymentToPaymentItem : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "StoreId", |
|||
table: "EShopPaymentsPayments"); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ExtraProperties", |
|||
table: "PaymentServicePaymentItems", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<Guid>( |
|||
name: "StoreId", |
|||
table: "EShopPaymentsPaymentItems", |
|||
nullable: false, |
|||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000")); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "ExtraProperties", |
|||
table: "PaymentServicePaymentItems"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "StoreId", |
|||
table: "EShopPaymentsPaymentItems"); |
|||
|
|||
migrationBuilder.AddColumn<Guid>( |
|||
name: "StoreId", |
|||
table: "EShopPaymentsPayments", |
|||
type: "uniqueidentifier", |
|||
nullable: true); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,423 +0,0 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class UpgradedPaymentServiceTo1_0_0 : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropForeignKey( |
|||
name: "FK_PaymentServicePaymentItems_PaymentServicePayments_PaymentId", |
|||
table: "PaymentServicePaymentItems"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_PaymentServiceWeChatPayRefundRecords", |
|||
table: "PaymentServiceWeChatPayRefundRecords"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_PaymentServiceWeChatPayPaymentRecords", |
|||
table: "PaymentServiceWeChatPayPaymentRecords"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_PaymentServiceRefunds", |
|||
table: "PaymentServiceRefunds"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_PaymentServicePayments", |
|||
table: "PaymentServicePayments"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_PaymentServicePaymentItems", |
|||
table: "PaymentServicePaymentItems"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "Currency", |
|||
table: "PaymentServicePaymentItems"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "PaymentServiceWeChatPayRefundRecords", |
|||
newName: "EasyAbpPaymentServiceWeChatPayRefundRecords"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "PaymentServiceWeChatPayPaymentRecords", |
|||
newName: "EasyAbpPaymentServiceWeChatPayPaymentRecords"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "PaymentServiceRefunds", |
|||
newName: "EasyAbpPaymentServiceRefunds"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "PaymentServicePayments", |
|||
newName: "EasyAbpPaymentServicePayments"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "PaymentServicePaymentItems", |
|||
newName: "EasyAbpPaymentServicePaymentItems"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_PaymentServiceWeChatPayRefundRecords_PaymentId", |
|||
table: "EasyAbpPaymentServiceWeChatPayRefundRecords", |
|||
newName: "IX_EasyAbpPaymentServiceWeChatPayRefundRecords_PaymentId"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_PaymentServiceWeChatPayPaymentRecords_PaymentId", |
|||
table: "EasyAbpPaymentServiceWeChatPayPaymentRecords", |
|||
newName: "IX_EasyAbpPaymentServiceWeChatPayPaymentRecords_PaymentId"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_PaymentServicePaymentItems_PaymentId", |
|||
table: "EasyAbpPaymentServicePaymentItems", |
|||
newName: "IX_EasyAbpPaymentServicePaymentItems_PaymentId"); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ItemKey", |
|||
table: "EShopPaymentsPaymentItems", |
|||
nullable: true, |
|||
oldClrType: typeof(Guid), |
|||
oldType: "uniqueidentifier"); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ExtraProperties", |
|||
table: "EShopPaymentsPaymentItems", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "RefundAmount", |
|||
table: "EasyAbpPaymentServiceRefunds", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "RefundAmount", |
|||
table: "EasyAbpPaymentServicePayments", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "PendingRefundAmount", |
|||
table: "EasyAbpPaymentServicePayments", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "PaymentDiscount", |
|||
table: "EasyAbpPaymentServicePayments", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "OriginalPaymentAmount", |
|||
table: "EasyAbpPaymentServicePayments", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "ActualPaymentAmount", |
|||
table: "EasyAbpPaymentServicePayments", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "RefundAmount", |
|||
table: "EasyAbpPaymentServicePaymentItems", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "PendingRefundAmount", |
|||
table: "EasyAbpPaymentServicePaymentItems", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "PaymentDiscount", |
|||
table: "EasyAbpPaymentServicePaymentItems", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "OriginalPaymentAmount", |
|||
table: "EasyAbpPaymentServicePaymentItems", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "ItemKey", |
|||
table: "EasyAbpPaymentServicePaymentItems", |
|||
nullable: true, |
|||
oldClrType: typeof(Guid), |
|||
oldType: "uniqueidentifier"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "ActualPaymentAmount", |
|||
table: "EasyAbpPaymentServicePaymentItems", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EasyAbpPaymentServiceWeChatPayRefundRecords", |
|||
table: "EasyAbpPaymentServiceWeChatPayRefundRecords", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EasyAbpPaymentServiceWeChatPayPaymentRecords", |
|||
table: "EasyAbpPaymentServiceWeChatPayPaymentRecords", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EasyAbpPaymentServiceRefunds", |
|||
table: "EasyAbpPaymentServiceRefunds", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EasyAbpPaymentServicePayments", |
|||
table: "EasyAbpPaymentServicePayments", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EasyAbpPaymentServicePaymentItems", |
|||
table: "EasyAbpPaymentServicePaymentItems", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddForeignKey( |
|||
name: "FK_EasyAbpPaymentServicePaymentItems_EasyAbpPaymentServicePayments_PaymentId", |
|||
table: "EasyAbpPaymentServicePaymentItems", |
|||
column: "PaymentId", |
|||
principalTable: "EasyAbpPaymentServicePayments", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Restrict); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropForeignKey( |
|||
name: "FK_EasyAbpPaymentServicePaymentItems_EasyAbpPaymentServicePayments_PaymentId", |
|||
table: "EasyAbpPaymentServicePaymentItems"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EasyAbpPaymentServiceWeChatPayRefundRecords", |
|||
table: "EasyAbpPaymentServiceWeChatPayRefundRecords"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EasyAbpPaymentServiceWeChatPayPaymentRecords", |
|||
table: "EasyAbpPaymentServiceWeChatPayPaymentRecords"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EasyAbpPaymentServiceRefunds", |
|||
table: "EasyAbpPaymentServiceRefunds"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EasyAbpPaymentServicePayments", |
|||
table: "EasyAbpPaymentServicePayments"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EasyAbpPaymentServicePaymentItems", |
|||
table: "EasyAbpPaymentServicePaymentItems"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ExtraProperties", |
|||
table: "EShopPaymentsPaymentItems"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EasyAbpPaymentServiceWeChatPayRefundRecords", |
|||
newName: "PaymentServiceWeChatPayRefundRecords"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EasyAbpPaymentServiceWeChatPayPaymentRecords", |
|||
newName: "PaymentServiceWeChatPayPaymentRecords"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EasyAbpPaymentServiceRefunds", |
|||
newName: "PaymentServiceRefunds"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EasyAbpPaymentServicePayments", |
|||
newName: "PaymentServicePayments"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EasyAbpPaymentServicePaymentItems", |
|||
newName: "PaymentServicePaymentItems"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EasyAbpPaymentServiceWeChatPayRefundRecords_PaymentId", |
|||
table: "PaymentServiceWeChatPayRefundRecords", |
|||
newName: "IX_PaymentServiceWeChatPayRefundRecords_PaymentId"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EasyAbpPaymentServiceWeChatPayPaymentRecords_PaymentId", |
|||
table: "PaymentServiceWeChatPayPaymentRecords", |
|||
newName: "IX_PaymentServiceWeChatPayPaymentRecords_PaymentId"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EasyAbpPaymentServicePaymentItems_PaymentId", |
|||
table: "PaymentServicePaymentItems", |
|||
newName: "IX_PaymentServicePaymentItems_PaymentId"); |
|||
|
|||
migrationBuilder.AlterColumn<Guid>( |
|||
name: "ItemKey", |
|||
table: "EShopPaymentsPaymentItems", |
|||
type: "uniqueidentifier", |
|||
nullable: false, |
|||
oldClrType: typeof(string), |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "RefundAmount", |
|||
table: "PaymentServiceRefunds", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "RefundAmount", |
|||
table: "PaymentServicePayments", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "PendingRefundAmount", |
|||
table: "PaymentServicePayments", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "PaymentDiscount", |
|||
table: "PaymentServicePayments", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "OriginalPaymentAmount", |
|||
table: "PaymentServicePayments", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "ActualPaymentAmount", |
|||
table: "PaymentServicePayments", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "RefundAmount", |
|||
table: "PaymentServicePaymentItems", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "PendingRefundAmount", |
|||
table: "PaymentServicePaymentItems", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "PaymentDiscount", |
|||
table: "PaymentServicePaymentItems", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "OriginalPaymentAmount", |
|||
table: "PaymentServicePaymentItems", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<Guid>( |
|||
name: "ItemKey", |
|||
table: "PaymentServicePaymentItems", |
|||
type: "uniqueidentifier", |
|||
nullable: false, |
|||
oldClrType: typeof(string), |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "ActualPaymentAmount", |
|||
table: "PaymentServicePaymentItems", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "Currency", |
|||
table: "PaymentServicePaymentItems", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_PaymentServiceWeChatPayRefundRecords", |
|||
table: "PaymentServiceWeChatPayRefundRecords", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_PaymentServiceWeChatPayPaymentRecords", |
|||
table: "PaymentServiceWeChatPayPaymentRecords", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_PaymentServiceRefunds", |
|||
table: "PaymentServiceRefunds", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_PaymentServicePayments", |
|||
table: "PaymentServicePayments", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_PaymentServicePaymentItems", |
|||
table: "PaymentServicePaymentItems", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddForeignKey( |
|||
name: "FK_PaymentServicePaymentItems_PaymentServicePayments_PaymentId", |
|||
table: "PaymentServicePaymentItems", |
|||
column: "PaymentId", |
|||
principalTable: "PaymentServicePayments", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Restrict); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,837 +0,0 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class AddedEasyAbpPrefix : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropForeignKey( |
|||
name: "FK_EShopOrdersOrderLines_EShopOrdersOrders_OrderId", |
|||
table: "EShopOrdersOrderLines"); |
|||
|
|||
migrationBuilder.DropForeignKey( |
|||
name: "FK_EShopPaymentsPaymentItems_EShopPaymentsPayments_PaymentId", |
|||
table: "EShopPaymentsPaymentItems"); |
|||
|
|||
migrationBuilder.DropForeignKey( |
|||
name: "FK_EShopProductsCategories_EShopProductsCategories_ParentId", |
|||
table: "EShopProductsCategories"); |
|||
|
|||
migrationBuilder.DropForeignKey( |
|||
name: "FK_EShopProductsProductAttributeOptions_EShopProductsProductAttributes_ProductAttributeId", |
|||
table: "EShopProductsProductAttributeOptions"); |
|||
|
|||
migrationBuilder.DropForeignKey( |
|||
name: "FK_EShopProductsProductAttributes_EShopProductsProducts_ProductId", |
|||
table: "EShopProductsProductAttributes"); |
|||
|
|||
migrationBuilder.DropForeignKey( |
|||
name: "FK_EShopProductsProductSkus_EShopProductsProducts_ProductId", |
|||
table: "EShopProductsProductSkus"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EShopStoresStores", |
|||
table: "EShopStoresStores"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EShopProductsProductTypes", |
|||
table: "EShopProductsProductTypes"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EShopProductsProductStores", |
|||
table: "EShopProductsProductStores"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EShopProductsProductSkus", |
|||
table: "EShopProductsProductSkus"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EShopProductsProducts", |
|||
table: "EShopProductsProducts"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EShopProductsProductInventories", |
|||
table: "EShopProductsProductInventories"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EShopProductsProductHistories", |
|||
table: "EShopProductsProductHistories"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EShopProductsProductDetails", |
|||
table: "EShopProductsProductDetails"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EShopProductsProductDetailHistories", |
|||
table: "EShopProductsProductDetailHistories"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EShopProductsProductCategories", |
|||
table: "EShopProductsProductCategories"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EShopProductsProductAttributes", |
|||
table: "EShopProductsProductAttributes"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EShopProductsProductAttributeOptions", |
|||
table: "EShopProductsProductAttributeOptions"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EShopProductsCategories", |
|||
table: "EShopProductsCategories"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EShopPluginsBasketsProductUpdates", |
|||
table: "EShopPluginsBasketsProductUpdates"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EShopPluginsBasketsBasketItems", |
|||
table: "EShopPluginsBasketsBasketItems"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EShopPaymentsRefunds", |
|||
table: "EShopPaymentsRefunds"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EShopPaymentsPayments", |
|||
table: "EShopPaymentsPayments"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EShopPaymentsPaymentItems", |
|||
table: "EShopPaymentsPaymentItems"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EShopOrdersOrders", |
|||
table: "EShopOrdersOrders"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EShopOrdersOrderLines", |
|||
table: "EShopOrdersOrderLines"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EShopStoresStores", |
|||
newName: "EasyAbpEShopStoresStores"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EShopProductsProductTypes", |
|||
newName: "EasyAbpEShopProductsProductTypes"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EShopProductsProductStores", |
|||
newName: "EasyAbpEShopProductsProductStores"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EShopProductsProductSkus", |
|||
newName: "EasyAbpEShopProductsProductSkus"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EShopProductsProducts", |
|||
newName: "EasyAbpEShopProductsProducts"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EShopProductsProductInventories", |
|||
newName: "EasyAbpEShopProductsProductInventories"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EShopProductsProductHistories", |
|||
newName: "EasyAbpEShopProductsProductHistories"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EShopProductsProductDetails", |
|||
newName: "EasyAbpEShopProductsProductDetails"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EShopProductsProductDetailHistories", |
|||
newName: "EasyAbpEShopProductsProductDetailHistories"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EShopProductsProductCategories", |
|||
newName: "EasyAbpEShopProductsProductCategories"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EShopProductsProductAttributes", |
|||
newName: "EasyAbpEShopProductsProductAttributes"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EShopProductsProductAttributeOptions", |
|||
newName: "EasyAbpEShopProductsProductAttributeOptions"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EShopProductsCategories", |
|||
newName: "EasyAbpEShopProductsCategories"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EShopPluginsBasketsProductUpdates", |
|||
newName: "EasyAbpEShopPluginsBasketsProductUpdates"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EShopPluginsBasketsBasketItems", |
|||
newName: "EasyAbpEShopPluginsBasketsBasketItems"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EShopPaymentsRefunds", |
|||
newName: "EasyAbpEShopPaymentsRefunds"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EShopPaymentsPayments", |
|||
newName: "EasyAbpEShopPaymentsPayments"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EShopPaymentsPaymentItems", |
|||
newName: "EasyAbpEShopPaymentsPaymentItems"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EShopOrdersOrders", |
|||
newName: "EasyAbpEShopOrdersOrders"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EShopOrdersOrderLines", |
|||
newName: "EasyAbpEShopOrdersOrderLines"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EShopProductsProductSkus_ProductId", |
|||
table: "EasyAbpEShopProductsProductSkus", |
|||
newName: "IX_EasyAbpEShopProductsProductSkus_ProductId"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EShopProductsProducts_UniqueName", |
|||
table: "EasyAbpEShopProductsProducts", |
|||
newName: "IX_EasyAbpEShopProductsProducts_UniqueName"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EShopProductsProductInventories_ProductSkuId", |
|||
table: "EasyAbpEShopProductsProductInventories", |
|||
newName: "IX_EasyAbpEShopProductsProductInventories_ProductSkuId"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EShopProductsProductHistories_ProductId", |
|||
table: "EasyAbpEShopProductsProductHistories", |
|||
newName: "IX_EasyAbpEShopProductsProductHistories_ProductId"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EShopProductsProductHistories_ModificationTime", |
|||
table: "EasyAbpEShopProductsProductHistories", |
|||
newName: "IX_EasyAbpEShopProductsProductHistories_ModificationTime"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EShopProductsProductDetailHistories_ProductDetailId", |
|||
table: "EasyAbpEShopProductsProductDetailHistories", |
|||
newName: "IX_EasyAbpEShopProductsProductDetailHistories_ProductDetailId"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EShopProductsProductDetailHistories_ModificationTime", |
|||
table: "EasyAbpEShopProductsProductDetailHistories", |
|||
newName: "IX_EasyAbpEShopProductsProductDetailHistories_ModificationTime"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EShopProductsProductAttributes_ProductId", |
|||
table: "EasyAbpEShopProductsProductAttributes", |
|||
newName: "IX_EasyAbpEShopProductsProductAttributes_ProductId"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EShopProductsProductAttributeOptions_ProductAttributeId", |
|||
table: "EasyAbpEShopProductsProductAttributeOptions", |
|||
newName: "IX_EasyAbpEShopProductsProductAttributeOptions_ProductAttributeId"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EShopProductsCategories_UniqueName", |
|||
table: "EasyAbpEShopProductsCategories", |
|||
newName: "IX_EasyAbpEShopProductsCategories_UniqueName"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EShopProductsCategories_ParentId", |
|||
table: "EasyAbpEShopProductsCategories", |
|||
newName: "IX_EasyAbpEShopProductsCategories_ParentId"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EShopPluginsBasketsProductUpdates_ProductSkuId", |
|||
table: "EasyAbpEShopPluginsBasketsProductUpdates", |
|||
newName: "IX_EasyAbpEShopPluginsBasketsProductUpdates_ProductSkuId"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EShopPluginsBasketsBasketItems_UserId", |
|||
table: "EasyAbpEShopPluginsBasketsBasketItems", |
|||
newName: "IX_EasyAbpEShopPluginsBasketsBasketItems_UserId"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EShopPaymentsPaymentItems_PaymentId", |
|||
table: "EasyAbpEShopPaymentsPaymentItems", |
|||
newName: "IX_EasyAbpEShopPaymentsPaymentItems_PaymentId"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EShopOrdersOrders_OrderNumber", |
|||
table: "EasyAbpEShopOrdersOrders", |
|||
newName: "IX_EasyAbpEShopOrdersOrders_OrderNumber"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EShopOrdersOrderLines_OrderId", |
|||
table: "EasyAbpEShopOrdersOrderLines", |
|||
newName: "IX_EasyAbpEShopOrdersOrderLines_OrderId"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EasyAbpEShopStoresStores", |
|||
table: "EasyAbpEShopStoresStores", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EasyAbpEShopProductsProductTypes", |
|||
table: "EasyAbpEShopProductsProductTypes", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EasyAbpEShopProductsProductStores", |
|||
table: "EasyAbpEShopProductsProductStores", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EasyAbpEShopProductsProductSkus", |
|||
table: "EasyAbpEShopProductsProductSkus", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EasyAbpEShopProductsProducts", |
|||
table: "EasyAbpEShopProductsProducts", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EasyAbpEShopProductsProductInventories", |
|||
table: "EasyAbpEShopProductsProductInventories", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EasyAbpEShopProductsProductHistories", |
|||
table: "EasyAbpEShopProductsProductHistories", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EasyAbpEShopProductsProductDetails", |
|||
table: "EasyAbpEShopProductsProductDetails", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EasyAbpEShopProductsProductDetailHistories", |
|||
table: "EasyAbpEShopProductsProductDetailHistories", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EasyAbpEShopProductsProductCategories", |
|||
table: "EasyAbpEShopProductsProductCategories", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EasyAbpEShopProductsProductAttributes", |
|||
table: "EasyAbpEShopProductsProductAttributes", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EasyAbpEShopProductsProductAttributeOptions", |
|||
table: "EasyAbpEShopProductsProductAttributeOptions", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EasyAbpEShopProductsCategories", |
|||
table: "EasyAbpEShopProductsCategories", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EasyAbpEShopPluginsBasketsProductUpdates", |
|||
table: "EasyAbpEShopPluginsBasketsProductUpdates", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EasyAbpEShopPluginsBasketsBasketItems", |
|||
table: "EasyAbpEShopPluginsBasketsBasketItems", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EasyAbpEShopPaymentsRefunds", |
|||
table: "EasyAbpEShopPaymentsRefunds", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EasyAbpEShopPaymentsPayments", |
|||
table: "EasyAbpEShopPaymentsPayments", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EasyAbpEShopPaymentsPaymentItems", |
|||
table: "EasyAbpEShopPaymentsPaymentItems", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EasyAbpEShopOrdersOrders", |
|||
table: "EasyAbpEShopOrdersOrders", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EasyAbpEShopOrdersOrderLines", |
|||
table: "EasyAbpEShopOrdersOrderLines", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddForeignKey( |
|||
name: "FK_EasyAbpEShopOrdersOrderLines_EasyAbpEShopOrdersOrders_OrderId", |
|||
table: "EasyAbpEShopOrdersOrderLines", |
|||
column: "OrderId", |
|||
principalTable: "EasyAbpEShopOrdersOrders", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Restrict); |
|||
|
|||
migrationBuilder.AddForeignKey( |
|||
name: "FK_EasyAbpEShopPaymentsPaymentItems_EasyAbpEShopPaymentsPayments_PaymentId", |
|||
table: "EasyAbpEShopPaymentsPaymentItems", |
|||
column: "PaymentId", |
|||
principalTable: "EasyAbpEShopPaymentsPayments", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Restrict); |
|||
|
|||
migrationBuilder.AddForeignKey( |
|||
name: "FK_EasyAbpEShopProductsCategories_EasyAbpEShopProductsCategories_ParentId", |
|||
table: "EasyAbpEShopProductsCategories", |
|||
column: "ParentId", |
|||
principalTable: "EasyAbpEShopProductsCategories", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Restrict); |
|||
|
|||
migrationBuilder.AddForeignKey( |
|||
name: "FK_EasyAbpEShopProductsProductAttributeOptions_EasyAbpEShopProductsProductAttributes_ProductAttributeId", |
|||
table: "EasyAbpEShopProductsProductAttributeOptions", |
|||
column: "ProductAttributeId", |
|||
principalTable: "EasyAbpEShopProductsProductAttributes", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Restrict); |
|||
|
|||
migrationBuilder.AddForeignKey( |
|||
name: "FK_EasyAbpEShopProductsProductAttributes_EasyAbpEShopProductsProducts_ProductId", |
|||
table: "EasyAbpEShopProductsProductAttributes", |
|||
column: "ProductId", |
|||
principalTable: "EasyAbpEShopProductsProducts", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Restrict); |
|||
|
|||
migrationBuilder.AddForeignKey( |
|||
name: "FK_EasyAbpEShopProductsProductSkus_EasyAbpEShopProductsProducts_ProductId", |
|||
table: "EasyAbpEShopProductsProductSkus", |
|||
column: "ProductId", |
|||
principalTable: "EasyAbpEShopProductsProducts", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Restrict); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropForeignKey( |
|||
name: "FK_EasyAbpEShopOrdersOrderLines_EasyAbpEShopOrdersOrders_OrderId", |
|||
table: "EasyAbpEShopOrdersOrderLines"); |
|||
|
|||
migrationBuilder.DropForeignKey( |
|||
name: "FK_EasyAbpEShopPaymentsPaymentItems_EasyAbpEShopPaymentsPayments_PaymentId", |
|||
table: "EasyAbpEShopPaymentsPaymentItems"); |
|||
|
|||
migrationBuilder.DropForeignKey( |
|||
name: "FK_EasyAbpEShopProductsCategories_EasyAbpEShopProductsCategories_ParentId", |
|||
table: "EasyAbpEShopProductsCategories"); |
|||
|
|||
migrationBuilder.DropForeignKey( |
|||
name: "FK_EasyAbpEShopProductsProductAttributeOptions_EasyAbpEShopProductsProductAttributes_ProductAttributeId", |
|||
table: "EasyAbpEShopProductsProductAttributeOptions"); |
|||
|
|||
migrationBuilder.DropForeignKey( |
|||
name: "FK_EasyAbpEShopProductsProductAttributes_EasyAbpEShopProductsProducts_ProductId", |
|||
table: "EasyAbpEShopProductsProductAttributes"); |
|||
|
|||
migrationBuilder.DropForeignKey( |
|||
name: "FK_EasyAbpEShopProductsProductSkus_EasyAbpEShopProductsProducts_ProductId", |
|||
table: "EasyAbpEShopProductsProductSkus"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EasyAbpEShopStoresStores", |
|||
table: "EasyAbpEShopStoresStores"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EasyAbpEShopProductsProductTypes", |
|||
table: "EasyAbpEShopProductsProductTypes"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EasyAbpEShopProductsProductStores", |
|||
table: "EasyAbpEShopProductsProductStores"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EasyAbpEShopProductsProductSkus", |
|||
table: "EasyAbpEShopProductsProductSkus"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EasyAbpEShopProductsProducts", |
|||
table: "EasyAbpEShopProductsProducts"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EasyAbpEShopProductsProductInventories", |
|||
table: "EasyAbpEShopProductsProductInventories"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EasyAbpEShopProductsProductHistories", |
|||
table: "EasyAbpEShopProductsProductHistories"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EasyAbpEShopProductsProductDetails", |
|||
table: "EasyAbpEShopProductsProductDetails"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EasyAbpEShopProductsProductDetailHistories", |
|||
table: "EasyAbpEShopProductsProductDetailHistories"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EasyAbpEShopProductsProductCategories", |
|||
table: "EasyAbpEShopProductsProductCategories"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EasyAbpEShopProductsProductAttributes", |
|||
table: "EasyAbpEShopProductsProductAttributes"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EasyAbpEShopProductsProductAttributeOptions", |
|||
table: "EasyAbpEShopProductsProductAttributeOptions"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EasyAbpEShopProductsCategories", |
|||
table: "EasyAbpEShopProductsCategories"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EasyAbpEShopPluginsBasketsProductUpdates", |
|||
table: "EasyAbpEShopPluginsBasketsProductUpdates"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EasyAbpEShopPluginsBasketsBasketItems", |
|||
table: "EasyAbpEShopPluginsBasketsBasketItems"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EasyAbpEShopPaymentsRefunds", |
|||
table: "EasyAbpEShopPaymentsRefunds"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EasyAbpEShopPaymentsPayments", |
|||
table: "EasyAbpEShopPaymentsPayments"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EasyAbpEShopPaymentsPaymentItems", |
|||
table: "EasyAbpEShopPaymentsPaymentItems"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EasyAbpEShopOrdersOrders", |
|||
table: "EasyAbpEShopOrdersOrders"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EasyAbpEShopOrdersOrderLines", |
|||
table: "EasyAbpEShopOrdersOrderLines"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EasyAbpEShopStoresStores", |
|||
newName: "EShopStoresStores"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EasyAbpEShopProductsProductTypes", |
|||
newName: "EShopProductsProductTypes"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EasyAbpEShopProductsProductStores", |
|||
newName: "EShopProductsProductStores"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EasyAbpEShopProductsProductSkus", |
|||
newName: "EShopProductsProductSkus"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EasyAbpEShopProductsProducts", |
|||
newName: "EShopProductsProducts"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EasyAbpEShopProductsProductInventories", |
|||
newName: "EShopProductsProductInventories"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EasyAbpEShopProductsProductHistories", |
|||
newName: "EShopProductsProductHistories"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EasyAbpEShopProductsProductDetails", |
|||
newName: "EShopProductsProductDetails"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EasyAbpEShopProductsProductDetailHistories", |
|||
newName: "EShopProductsProductDetailHistories"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EasyAbpEShopProductsProductCategories", |
|||
newName: "EShopProductsProductCategories"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EasyAbpEShopProductsProductAttributes", |
|||
newName: "EShopProductsProductAttributes"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EasyAbpEShopProductsProductAttributeOptions", |
|||
newName: "EShopProductsProductAttributeOptions"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EasyAbpEShopProductsCategories", |
|||
newName: "EShopProductsCategories"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EasyAbpEShopPluginsBasketsProductUpdates", |
|||
newName: "EShopPluginsBasketsProductUpdates"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EasyAbpEShopPluginsBasketsBasketItems", |
|||
newName: "EShopPluginsBasketsBasketItems"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EasyAbpEShopPaymentsRefunds", |
|||
newName: "EShopPaymentsRefunds"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EasyAbpEShopPaymentsPayments", |
|||
newName: "EShopPaymentsPayments"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EasyAbpEShopPaymentsPaymentItems", |
|||
newName: "EShopPaymentsPaymentItems"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EasyAbpEShopOrdersOrders", |
|||
newName: "EShopOrdersOrders"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EasyAbpEShopOrdersOrderLines", |
|||
newName: "EShopOrdersOrderLines"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EasyAbpEShopProductsProductSkus_ProductId", |
|||
table: "EShopProductsProductSkus", |
|||
newName: "IX_EShopProductsProductSkus_ProductId"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EasyAbpEShopProductsProducts_UniqueName", |
|||
table: "EShopProductsProducts", |
|||
newName: "IX_EShopProductsProducts_UniqueName"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EasyAbpEShopProductsProductInventories_ProductSkuId", |
|||
table: "EShopProductsProductInventories", |
|||
newName: "IX_EShopProductsProductInventories_ProductSkuId"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EasyAbpEShopProductsProductHistories_ProductId", |
|||
table: "EShopProductsProductHistories", |
|||
newName: "IX_EShopProductsProductHistories_ProductId"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EasyAbpEShopProductsProductHistories_ModificationTime", |
|||
table: "EShopProductsProductHistories", |
|||
newName: "IX_EShopProductsProductHistories_ModificationTime"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EasyAbpEShopProductsProductDetailHistories_ProductDetailId", |
|||
table: "EShopProductsProductDetailHistories", |
|||
newName: "IX_EShopProductsProductDetailHistories_ProductDetailId"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EasyAbpEShopProductsProductDetailHistories_ModificationTime", |
|||
table: "EShopProductsProductDetailHistories", |
|||
newName: "IX_EShopProductsProductDetailHistories_ModificationTime"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EasyAbpEShopProductsProductAttributes_ProductId", |
|||
table: "EShopProductsProductAttributes", |
|||
newName: "IX_EShopProductsProductAttributes_ProductId"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EasyAbpEShopProductsProductAttributeOptions_ProductAttributeId", |
|||
table: "EShopProductsProductAttributeOptions", |
|||
newName: "IX_EShopProductsProductAttributeOptions_ProductAttributeId"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EasyAbpEShopProductsCategories_UniqueName", |
|||
table: "EShopProductsCategories", |
|||
newName: "IX_EShopProductsCategories_UniqueName"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EasyAbpEShopProductsCategories_ParentId", |
|||
table: "EShopProductsCategories", |
|||
newName: "IX_EShopProductsCategories_ParentId"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EasyAbpEShopPluginsBasketsProductUpdates_ProductSkuId", |
|||
table: "EShopPluginsBasketsProductUpdates", |
|||
newName: "IX_EShopPluginsBasketsProductUpdates_ProductSkuId"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EasyAbpEShopPluginsBasketsBasketItems_UserId", |
|||
table: "EShopPluginsBasketsBasketItems", |
|||
newName: "IX_EShopPluginsBasketsBasketItems_UserId"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EasyAbpEShopPaymentsPaymentItems_PaymentId", |
|||
table: "EShopPaymentsPaymentItems", |
|||
newName: "IX_EShopPaymentsPaymentItems_PaymentId"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EasyAbpEShopOrdersOrders_OrderNumber", |
|||
table: "EShopOrdersOrders", |
|||
newName: "IX_EShopOrdersOrders_OrderNumber"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EasyAbpEShopOrdersOrderLines_OrderId", |
|||
table: "EShopOrdersOrderLines", |
|||
newName: "IX_EShopOrdersOrderLines_OrderId"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EShopStoresStores", |
|||
table: "EShopStoresStores", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EShopProductsProductTypes", |
|||
table: "EShopProductsProductTypes", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EShopProductsProductStores", |
|||
table: "EShopProductsProductStores", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EShopProductsProductSkus", |
|||
table: "EShopProductsProductSkus", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EShopProductsProducts", |
|||
table: "EShopProductsProducts", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EShopProductsProductInventories", |
|||
table: "EShopProductsProductInventories", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EShopProductsProductHistories", |
|||
table: "EShopProductsProductHistories", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EShopProductsProductDetails", |
|||
table: "EShopProductsProductDetails", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EShopProductsProductDetailHistories", |
|||
table: "EShopProductsProductDetailHistories", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EShopProductsProductCategories", |
|||
table: "EShopProductsProductCategories", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EShopProductsProductAttributes", |
|||
table: "EShopProductsProductAttributes", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EShopProductsProductAttributeOptions", |
|||
table: "EShopProductsProductAttributeOptions", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EShopProductsCategories", |
|||
table: "EShopProductsCategories", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EShopPluginsBasketsProductUpdates", |
|||
table: "EShopPluginsBasketsProductUpdates", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EShopPluginsBasketsBasketItems", |
|||
table: "EShopPluginsBasketsBasketItems", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EShopPaymentsRefunds", |
|||
table: "EShopPaymentsRefunds", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EShopPaymentsPayments", |
|||
table: "EShopPaymentsPayments", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EShopPaymentsPaymentItems", |
|||
table: "EShopPaymentsPaymentItems", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EShopOrdersOrders", |
|||
table: "EShopOrdersOrders", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EShopOrdersOrderLines", |
|||
table: "EShopOrdersOrderLines", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddForeignKey( |
|||
name: "FK_EShopOrdersOrderLines_EShopOrdersOrders_OrderId", |
|||
table: "EShopOrdersOrderLines", |
|||
column: "OrderId", |
|||
principalTable: "EShopOrdersOrders", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Restrict); |
|||
|
|||
migrationBuilder.AddForeignKey( |
|||
name: "FK_EShopPaymentsPaymentItems_EShopPaymentsPayments_PaymentId", |
|||
table: "EShopPaymentsPaymentItems", |
|||
column: "PaymentId", |
|||
principalTable: "EShopPaymentsPayments", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Restrict); |
|||
|
|||
migrationBuilder.AddForeignKey( |
|||
name: "FK_EShopProductsCategories_EShopProductsCategories_ParentId", |
|||
table: "EShopProductsCategories", |
|||
column: "ParentId", |
|||
principalTable: "EShopProductsCategories", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Restrict); |
|||
|
|||
migrationBuilder.AddForeignKey( |
|||
name: "FK_EShopProductsProductAttributeOptions_EShopProductsProductAttributes_ProductAttributeId", |
|||
table: "EShopProductsProductAttributeOptions", |
|||
column: "ProductAttributeId", |
|||
principalTable: "EShopProductsProductAttributes", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Restrict); |
|||
|
|||
migrationBuilder.AddForeignKey( |
|||
name: "FK_EShopProductsProductAttributes_EShopProductsProducts_ProductId", |
|||
table: "EShopProductsProductAttributes", |
|||
column: "ProductId", |
|||
principalTable: "EShopProductsProducts", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Restrict); |
|||
|
|||
migrationBuilder.AddForeignKey( |
|||
name: "FK_EShopProductsProductSkus_EShopProductsProducts_ProductId", |
|||
table: "EShopProductsProductSkus", |
|||
column: "ProductId", |
|||
principalTable: "EShopProductsProducts", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Restrict); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,110 +0,0 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class UpgradedPaymentServiceTo1_1_0 : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "PaymentItemId", |
|||
table: "EasyAbpPaymentServiceRefunds"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "PaymentItemId", |
|||
table: "EasyAbpEShopPaymentsRefunds"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "StoreId", |
|||
table: "EasyAbpEShopPaymentsRefunds"); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "DisplayReason", |
|||
table: "EasyAbpPaymentServiceRefunds", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "DisplayReason", |
|||
table: "EasyAbpEShopPaymentsRefunds", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "CancellationReason", |
|||
table: "EasyAbpEShopOrdersOrders", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "EasyAbpPaymentServiceRefundItems", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(nullable: false), |
|||
CreationTime = table.Column<DateTime>(nullable: false), |
|||
CreatorId = table.Column<Guid>(nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(nullable: true), |
|||
LastModifierId = table.Column<Guid>(nullable: true), |
|||
IsDeleted = table.Column<bool>(nullable: false, defaultValue: false), |
|||
DeleterId = table.Column<Guid>(nullable: true), |
|||
DeletionTime = table.Column<DateTime>(nullable: true), |
|||
PaymentItemId = table.Column<Guid>(nullable: false), |
|||
RefundAmount = table.Column<decimal>(type: "decimal(20,8)", nullable: false), |
|||
CustomerRemark = table.Column<string>(nullable: true), |
|||
StaffRemark = table.Column<string>(nullable: true), |
|||
RefundId = table.Column<Guid>(nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_EasyAbpPaymentServiceRefundItems", x => x.Id); |
|||
table.ForeignKey( |
|||
name: "FK_EasyAbpPaymentServiceRefundItems_EasyAbpPaymentServiceRefunds_RefundId", |
|||
column: x => x.RefundId, |
|||
principalTable: "EasyAbpPaymentServiceRefunds", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Restrict); |
|||
}); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_EasyAbpPaymentServiceRefundItems_RefundId", |
|||
table: "EasyAbpPaymentServiceRefundItems", |
|||
column: "RefundId"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "EasyAbpPaymentServiceRefundItems"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "DisplayReason", |
|||
table: "EasyAbpPaymentServiceRefunds"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "DisplayReason", |
|||
table: "EasyAbpEShopPaymentsRefunds"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "CancellationReason", |
|||
table: "EasyAbpEShopOrdersOrders"); |
|||
|
|||
migrationBuilder.AddColumn<Guid>( |
|||
name: "PaymentItemId", |
|||
table: "EasyAbpPaymentServiceRefunds", |
|||
type: "uniqueidentifier", |
|||
nullable: false, |
|||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000")); |
|||
|
|||
migrationBuilder.AddColumn<Guid>( |
|||
name: "PaymentItemId", |
|||
table: "EasyAbpEShopPaymentsRefunds", |
|||
type: "uniqueidentifier", |
|||
nullable: false, |
|||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000")); |
|||
|
|||
migrationBuilder.AddColumn<Guid>( |
|||
name: "StoreId", |
|||
table: "EasyAbpEShopPaymentsRefunds", |
|||
type: "uniqueidentifier", |
|||
nullable: true); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,52 +0,0 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class AddedRefundItem : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.CreateTable( |
|||
name: "RefundItem", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(nullable: false), |
|||
CreationTime = table.Column<DateTime>(nullable: false), |
|||
CreatorId = table.Column<Guid>(nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(nullable: true), |
|||
LastModifierId = table.Column<Guid>(nullable: true), |
|||
IsDeleted = table.Column<bool>(nullable: false), |
|||
DeleterId = table.Column<Guid>(nullable: true), |
|||
DeletionTime = table.Column<DateTime>(nullable: true), |
|||
PaymentItemId = table.Column<Guid>(nullable: false), |
|||
RefundAmount = table.Column<decimal>(nullable: false), |
|||
CustomerRemark = table.Column<string>(nullable: true), |
|||
StaffRemark = table.Column<string>(nullable: true), |
|||
StoreId = table.Column<Guid>(nullable: true), |
|||
RefundId = table.Column<Guid>(nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_RefundItem", x => x.Id); |
|||
table.ForeignKey( |
|||
name: "FK_RefundItem_EasyAbpEShopPaymentsRefunds_RefundId", |
|||
column: x => x.RefundId, |
|||
principalTable: "EasyAbpEShopPaymentsRefunds", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Restrict); |
|||
}); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_RefundItem_RefundId", |
|||
table: "RefundItem", |
|||
column: "RefundId"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "RefundItem"); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,105 +0,0 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class AddedRefundItemToDbContext : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropForeignKey( |
|||
name: "FK_RefundItem_EasyAbpEShopPaymentsRefunds_RefundId", |
|||
table: "RefundItem"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_RefundItem", |
|||
table: "RefundItem"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "RefundItem", |
|||
newName: "EasyAbpEShopPaymentsRefundItems"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_RefundItem_RefundId", |
|||
table: "EasyAbpEShopPaymentsRefundItems", |
|||
newName: "IX_EasyAbpEShopPaymentsRefundItems_RefundId"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "RefundAmount", |
|||
table: "EasyAbpEShopPaymentsRefundItems", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,2)"); |
|||
|
|||
migrationBuilder.AlterColumn<bool>( |
|||
name: "IsDeleted", |
|||
table: "EasyAbpEShopPaymentsRefundItems", |
|||
nullable: false, |
|||
defaultValue: false, |
|||
oldClrType: typeof(bool), |
|||
oldType: "bit"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EasyAbpEShopPaymentsRefundItems", |
|||
table: "EasyAbpEShopPaymentsRefundItems", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddForeignKey( |
|||
name: "FK_EasyAbpEShopPaymentsRefundItems_EasyAbpEShopPaymentsRefunds_RefundId", |
|||
table: "EasyAbpEShopPaymentsRefundItems", |
|||
column: "RefundId", |
|||
principalTable: "EasyAbpEShopPaymentsRefunds", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Restrict); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropForeignKey( |
|||
name: "FK_EasyAbpEShopPaymentsRefundItems_EasyAbpEShopPaymentsRefunds_RefundId", |
|||
table: "EasyAbpEShopPaymentsRefundItems"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EasyAbpEShopPaymentsRefundItems", |
|||
table: "EasyAbpEShopPaymentsRefundItems"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EasyAbpEShopPaymentsRefundItems", |
|||
newName: "RefundItem"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EasyAbpEShopPaymentsRefundItems_RefundId", |
|||
table: "RefundItem", |
|||
newName: "IX_RefundItem_RefundId"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "RefundAmount", |
|||
table: "RefundItem", |
|||
type: "decimal(18,2)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<bool>( |
|||
name: "IsDeleted", |
|||
table: "RefundItem", |
|||
type: "bit", |
|||
nullable: false, |
|||
oldClrType: typeof(bool), |
|||
oldDefaultValue: false); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_RefundItem", |
|||
table: "RefundItem", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddForeignKey( |
|||
name: "FK_RefundItem_EasyAbpEShopPaymentsRefunds_RefundId", |
|||
table: "RefundItem", |
|||
column: "RefundId", |
|||
principalTable: "EasyAbpEShopPaymentsRefunds", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Restrict); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,116 +0,0 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class ChangesForOrderRefund : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.RenameColumn( |
|||
name: "RefundedAmount", |
|||
table: "EasyAbpEShopOrdersOrders", |
|||
newName: "RefundAmount"); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ExtraProperties", |
|||
table: "EasyAbpPaymentServiceRefundItems", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<Guid>( |
|||
name: "StoreId", |
|||
table: "EasyAbpEShopPaymentsRefundItems", |
|||
nullable: false, |
|||
oldClrType: typeof(Guid), |
|||
oldType: "uniqueidentifier", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ExtraProperties", |
|||
table: "EasyAbpEShopPaymentsRefundItems", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<Guid>( |
|||
name: "OrderId", |
|||
table: "EasyAbpEShopPaymentsRefundItems", |
|||
nullable: false, |
|||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000")); |
|||
|
|||
migrationBuilder.AddColumn<decimal>( |
|||
name: "RefundAmount", |
|||
table: "EasyAbpEShopOrdersOrderLines", |
|||
nullable: false, |
|||
defaultValue: 0m); |
|||
|
|||
migrationBuilder.AddColumn<int>( |
|||
name: "RefundedQuantity", |
|||
table: "EasyAbpEShopOrdersOrderLines", |
|||
nullable: false, |
|||
defaultValue: 0); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "RefundItemOrderLine", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(nullable: false), |
|||
OrderLineId = table.Column<Guid>(nullable: false), |
|||
RefundedQuantity = table.Column<int>(nullable: false), |
|||
RefundAmount = table.Column<decimal>(nullable: false), |
|||
RefundItemId = table.Column<Guid>(nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_RefundItemOrderLine", x => x.Id); |
|||
table.ForeignKey( |
|||
name: "FK_RefundItemOrderLine_EasyAbpEShopPaymentsRefundItems_RefundItemId", |
|||
column: x => x.RefundItemId, |
|||
principalTable: "EasyAbpEShopPaymentsRefundItems", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Restrict); |
|||
}); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_RefundItemOrderLine_RefundItemId", |
|||
table: "RefundItemOrderLine", |
|||
column: "RefundItemId"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "RefundItemOrderLine"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ExtraProperties", |
|||
table: "EasyAbpPaymentServiceRefundItems"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ExtraProperties", |
|||
table: "EasyAbpEShopPaymentsRefundItems"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "OrderId", |
|||
table: "EasyAbpEShopPaymentsRefundItems"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "RefundAmount", |
|||
table: "EasyAbpEShopOrdersOrderLines"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "RefundedQuantity", |
|||
table: "EasyAbpEShopOrdersOrderLines"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "RefundAmount", |
|||
table: "EasyAbpEShopOrdersOrders", |
|||
newName: "RefundedAmount"); |
|||
|
|||
migrationBuilder.AlterColumn<Guid>( |
|||
name: "StoreId", |
|||
table: "EasyAbpEShopPaymentsRefundItems", |
|||
type: "uniqueidentifier", |
|||
nullable: true, |
|||
oldClrType: typeof(Guid)); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,105 +0,0 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class AddedRefundItemOrderLineToDbContext : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropForeignKey( |
|||
name: "FK_RefundItemOrderLine_EasyAbpEShopPaymentsRefundItems_RefundItemId", |
|||
table: "RefundItemOrderLine"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_RefundItemOrderLine", |
|||
table: "RefundItemOrderLine"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "RefundItemOrderLine", |
|||
newName: "EasyAbpEShopPaymentsRefundItemOrderLines"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_RefundItemOrderLine_RefundItemId", |
|||
table: "EasyAbpEShopPaymentsRefundItemOrderLines", |
|||
newName: "IX_EasyAbpEShopPaymentsRefundItemOrderLines_RefundItemId"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "RefundAmount", |
|||
table: "EasyAbpEShopOrdersOrderLines", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,2)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "RefundAmount", |
|||
table: "EasyAbpEShopPaymentsRefundItemOrderLines", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,2)"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_EasyAbpEShopPaymentsRefundItemOrderLines", |
|||
table: "EasyAbpEShopPaymentsRefundItemOrderLines", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddForeignKey( |
|||
name: "FK_EasyAbpEShopPaymentsRefundItemOrderLines_EasyAbpEShopPaymentsRefundItems_RefundItemId", |
|||
table: "EasyAbpEShopPaymentsRefundItemOrderLines", |
|||
column: "RefundItemId", |
|||
principalTable: "EasyAbpEShopPaymentsRefundItems", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Restrict); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropForeignKey( |
|||
name: "FK_EasyAbpEShopPaymentsRefundItemOrderLines_EasyAbpEShopPaymentsRefundItems_RefundItemId", |
|||
table: "EasyAbpEShopPaymentsRefundItemOrderLines"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_EasyAbpEShopPaymentsRefundItemOrderLines", |
|||
table: "EasyAbpEShopPaymentsRefundItemOrderLines"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "EasyAbpEShopPaymentsRefundItemOrderLines", |
|||
newName: "RefundItemOrderLine"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_EasyAbpEShopPaymentsRefundItemOrderLines_RefundItemId", |
|||
table: "RefundItemOrderLine", |
|||
newName: "IX_RefundItemOrderLine_RefundItemId"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "RefundAmount", |
|||
table: "EasyAbpEShopOrdersOrderLines", |
|||
type: "decimal(18,2)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "RefundAmount", |
|||
table: "RefundItemOrderLine", |
|||
type: "decimal(18,2)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_RefundItemOrderLine", |
|||
table: "RefundItemOrderLine", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddForeignKey( |
|||
name: "FK_RefundItemOrderLine_EasyAbpEShopPaymentsRefundItems_RefundItemId", |
|||
table: "RefundItemOrderLine", |
|||
column: "RefundItemId", |
|||
principalTable: "EasyAbpEShopPaymentsRefundItems", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Restrict); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,86 +0,0 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class AddedPrepaymentModule : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.CreateTable( |
|||
name: "EasyAbpPaymentServicePrepaymentAccounts", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(nullable: false), |
|||
ExtraProperties = table.Column<string>(nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(maxLength: 40, nullable: true), |
|||
CreationTime = table.Column<DateTime>(nullable: false), |
|||
CreatorId = table.Column<Guid>(nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(nullable: true), |
|||
LastModifierId = table.Column<Guid>(nullable: true), |
|||
IsDeleted = table.Column<bool>(nullable: false, defaultValue: false), |
|||
DeleterId = table.Column<Guid>(nullable: true), |
|||
DeletionTime = table.Column<DateTime>(nullable: true), |
|||
TenantId = table.Column<Guid>(nullable: true), |
|||
AccountGroupName = table.Column<string>(nullable: true), |
|||
UserId = table.Column<Guid>(nullable: false), |
|||
Balance = table.Column<decimal>(type: "decimal(20,8)", nullable: false), |
|||
LockedBalance = table.Column<decimal>(type: "decimal(20,8)", nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_EasyAbpPaymentServicePrepaymentAccounts", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "EasyAbpPaymentServicePrepaymentTransactions", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(nullable: false), |
|||
ExtraProperties = table.Column<string>(nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(maxLength: 40, nullable: true), |
|||
CreationTime = table.Column<DateTime>(nullable: false), |
|||
CreatorId = table.Column<Guid>(nullable: true), |
|||
TenantId = table.Column<Guid>(nullable: true), |
|||
AccountId = table.Column<Guid>(nullable: false), |
|||
AccountUserId = table.Column<Guid>(nullable: false), |
|||
PaymentId = table.Column<Guid>(nullable: true), |
|||
TransactionType = table.Column<int>(nullable: false), |
|||
ActionName = table.Column<string>(nullable: true), |
|||
PaymentMethod = table.Column<string>(nullable: true), |
|||
ExternalTradingCode = table.Column<string>(nullable: true), |
|||
Currency = table.Column<string>(nullable: true), |
|||
ChangedBalance = table.Column<decimal>(type: "decimal(20,8)", nullable: false), |
|||
OriginalBalance = table.Column<decimal>(type: "decimal(20,8)", nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_EasyAbpPaymentServicePrepaymentTransactions", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_EasyAbpPaymentServicePrepaymentAccounts_UserId", |
|||
table: "EasyAbpPaymentServicePrepaymentAccounts", |
|||
column: "UserId"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_EasyAbpPaymentServicePrepaymentTransactions_AccountId", |
|||
table: "EasyAbpPaymentServicePrepaymentTransactions", |
|||
column: "AccountId"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_EasyAbpPaymentServicePrepaymentTransactions_AccountUserId", |
|||
table: "EasyAbpPaymentServicePrepaymentTransactions", |
|||
column: "AccountUserId"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "EasyAbpPaymentServicePrepaymentAccounts"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "EasyAbpPaymentServicePrepaymentTransactions"); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,23 +0,0 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class RemovedCurrencyFromPaymentItem : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "Currency", |
|||
table: "EasyAbpEShopPaymentsPaymentItems"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AddColumn<string>( |
|||
name: "Currency", |
|||
table: "EasyAbpEShopPaymentsPaymentItems", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,33 +0,0 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class RemovedSpecifiedInventoryProviderName : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "SpecifiedInventoryProviderName", |
|||
table: "EasyAbpEShopProductsProductSkus"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "SpecifiedInventoryProviderName", |
|||
table: "EasyAbpEShopProductsProducts"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AddColumn<string>( |
|||
name: "SpecifiedInventoryProviderName", |
|||
table: "EasyAbpEShopProductsProductSkus", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "SpecifiedInventoryProviderName", |
|||
table: "EasyAbpEShopProductsProducts", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,39 +0,0 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class AddedTransactionEntityToStoresModule : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.CreateTable( |
|||
name: "EasyAbpEShopStoresTransactions", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(nullable: false), |
|||
ExtraProperties = table.Column<string>(nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(maxLength: 40, nullable: true), |
|||
CreationTime = table.Column<DateTime>(nullable: false), |
|||
CreatorId = table.Column<Guid>(nullable: true), |
|||
TenantId = table.Column<Guid>(nullable: true), |
|||
StoreId = table.Column<Guid>(nullable: false), |
|||
OrderId = table.Column<Guid>(nullable: true), |
|||
TransactionType = table.Column<int>(nullable: false), |
|||
ActionName = table.Column<string>(nullable: true), |
|||
Currency = table.Column<string>(nullable: true), |
|||
Amount = table.Column<decimal>(nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_EasyAbpEShopStoresTransactions", x => x.Id); |
|||
}); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "EasyAbpEShopStoresTransactions"); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,29 +0,0 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class ConfiguredHasColumnTypeForTransaction : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "Amount", |
|||
table: "EasyAbpEShopStoresTransactions", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,2)"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "Amount", |
|||
table: "EasyAbpEShopStoresTransactions", |
|||
type: "decimal(18,2)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,35 +0,0 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class AddedActualTotalPricePropertyToOrderEntity : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AddColumn<decimal>( |
|||
name: "ActualTotalPrice", |
|||
table: "EasyAbpEShopOrdersOrders", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
defaultValue: 0m); |
|||
|
|||
migrationBuilder.AddColumn<decimal>( |
|||
name: "ActualTotalPrice", |
|||
table: "EasyAbpEShopOrdersOrderLines", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
defaultValue: 0m); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "ActualTotalPrice", |
|||
table: "EasyAbpEShopOrdersOrders"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ActualTotalPrice", |
|||
table: "EasyAbpEShopOrdersOrderLines"); |
|||
} |
|||
} |
|||
} |
|||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue