Browse Source

Upgrade to ABP 4.4.0.

pull/119/head
gdlcf88 5 years ago
parent
commit
cdc81d93d7
  1. 8
      Directory.Build.props
  2. 7
      EShop.sln
  3. 2
      azure-pipelines.yml
  4. 2
      common.props
  5. 2
      samples/EShopSample/aspnet-core/src/EShopSample.DbMigrator/EShopSample.DbMigrator.csproj
  6. 2
      samples/EShopSample/aspnet-core/src/EShopSample.DbMigrator/EShopSampleDbMigratorModule.cs
  7. 63
      samples/EShopSample/aspnet-core/src/EShopSample.Domain/Users/AppUser.cs
  8. 25
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/EShopSample.EntityFrameworkCore.DbMigrations.csproj
  9. 16
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/EntityFrameworkCore/EShopSampleEntityFrameworkCoreDbMigrationsModule.cs
  10. 62
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/EntityFrameworkCore/EShopSampleMigrationsDbContext.cs
  11. 3123
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200526074907_AddedCodeToProductSku.Designer.cs
  12. 1715
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200526074907_AddedCodeToProductSku.cs
  13. 3123
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200527083620_ChangedToSerializedEntityData.Designer.cs
  14. 51
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200527083620_ChangedToSerializedEntityData.cs
  15. 3129
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200602074752_AddedPaymentAndRefundEntities.Designer.cs
  16. 32
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200602074752_AddedPaymentAndRefundEntities.cs
  17. 3367
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200603115405_MadePaymentAndRefundExclusiveTableEntities.Designer.cs
  18. 143
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200603115405_MadePaymentAndRefundExclusiveTableEntities.cs
  19. 3533
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200610111529_UpgradedToAbp2_9_0.Designer.cs
  20. 127
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200610111529_UpgradedToAbp2_9_0.cs
  21. 3540
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200612085218_AddedOrderNumberProperty.Designer.cs
  22. 33
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200612085218_AddedOrderNumberProperty.cs
  23. 3543
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200612105914_AddedOrderMaxQuantityProperty.Designer.cs
  24. 23
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200612105914_AddedOrderMaxQuantityProperty.cs
  25. 3543
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200620070213_ChangedMoneyToDecimal20_8.Designer.cs
  26. 303
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200620070213_ChangedMoneyToDecimal20_8.cs
  27. 3561
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200620145307_UsedEasyAbpTreesModule.Designer.cs
  28. 63
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200620145307_UsedEasyAbpTreesModule.cs
  29. 3589
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200624075154_UpgradedPaymentServiceModuleTo0_3_7.Designer.cs
  30. 219
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200624075154_UpgradedPaymentServiceModuleTo0_3_7.cs
  31. 3601
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200624181705_AddedMissingPropertiesInPaymentAndRefund.Designer.cs
  32. 52
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200624181705_AddedMissingPropertiesInPaymentAndRefund.cs
  33. 3601
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200624191051_AddedColumnTypeOfPendingRefundAmount.Designer.cs
  34. 45
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200624191051_AddedColumnTypeOfPendingRefundAmount.cs
  35. 3601
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200627172358_RenamedCancelledToCanceled.Designer.cs
  36. 64
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200627172358_RenamedCancelledToCanceled.cs
  37. 3625
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200702100757_UpgradedAbpTo3_0_0.Designer.cs
  38. 519
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200702100757_UpgradedAbpTo3_0_0.cs
  39. 3699
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704104743_AddedMediaResourcesToProductSku.Designer.cs
  40. 59
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704104743_AddedMediaResourcesToProductSku.cs
  41. 3699
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704130321_AddedDecimalConfigurationsToBasketItem.Designer.cs
  42. 61
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704130321_AddedDecimalConfigurationsToBasketItem.cs
  43. 3702
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704130714_AddedStoreIdToBasketItem.Designer.cs
  44. 24
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704130714_AddedStoreIdToBasketItem.cs
  45. 3762
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704181535_CreatedProductUpdateEntity.Designer.cs
  46. 44
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704181535_CreatedProductUpdateEntity.cs
  47. 3770
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704182511_ChangeBasketItemToAuditedEntity.Designer.cs
  48. 32
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704182511_ChangeBasketItemToAuditedEntity.cs
  49. 3776
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704195327_AddInventoryAndIsInvalidToBasketItem.Designer.cs
  50. 33
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704195327_AddInventoryAndIsInvalidToBasketItem.cs
  51. 3772
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704200233_RemoveTenantIdFromProductUpdate.Designer.cs
  52. 24
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704200233_RemoveTenantIdFromProductUpdate.cs
  53. 3831
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200705195503_RedesignedInventory.Designer.cs
  54. 68
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200705195503_RedesignedInventory.cs
  55. 3837
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200706060054_AddedSpecifiedInventoryProviderName.Designer.cs
  56. 31
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200706060054_AddedSpecifiedInventoryProviderName.cs
  57. 3837
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200706070250_ChangedSoldToLong.Designer.cs
  58. 27
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200706070250_ChangedSoldToLong.cs
  59. 3840
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200708064137_AddedProductTypeNameToOrderLine.Designer.cs
  60. 22
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200708064137_AddedProductTypeNameToOrderLine.cs
  61. 3840
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710144500_AddedNameAndRemovedParentCategoryId.Designer.cs
  62. 33
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710144500_AddedNameAndRemovedParentCategoryId.cs
  63. 3840
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710151847_RenamedCodeToName.Designer.cs
  64. 33
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710151847_RenamedCodeToName.cs
  65. 3844
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710152518_MadeUniqueNameUniqueIndex.Designer.cs
  66. 40
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710152518_MadeUniqueNameUniqueIndex.cs
  67. 3848
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710153132_RenamedNameToUniqueNameInCategory.Designer.cs
  68. 43
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710153132_RenamedNameToUniqueNameInCategory.cs
  69. 3854
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710160345_RenamedNameToUniqueName.Designer.cs
  70. 107
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710160345_RenamedNameToUniqueName.cs
  71. 3860
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710163538_AddedSkuName.Designer.cs
  72. 31
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710163538_AddedSkuName.cs
  73. 3864
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200804190805_MovedStoreIdFromPaymentToPaymentItem.Designer.cs
  74. 43
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200804190805_MovedStoreIdFromPaymentToPaymentItem.cs
  75. 3865
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200824110408_UpgradedPaymentServiceTo1_0_0.Designer.cs
  76. 423
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200824110408_UpgradedPaymentServiceTo1_0_0.cs
  77. 3865
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200825104114_AddedEasyAbpPrefix.Designer.cs
  78. 837
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200825104114_AddedEasyAbpPrefix.cs
  79. 3930
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200825130202_UpgradedPaymentServiceTo1_1_0.Designer.cs
  80. 110
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200825130202_UpgradedPaymentServiceTo1_1_0.cs
  81. 3989
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200826083027_AddedRefundItem.Designer.cs
  82. 52
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200826083027_AddedRefundItem.cs
  83. 3998
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200826083250_AddedRefundItemToDbContext.Designer.cs
  84. 105
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200826083250_AddedRefundItemToDbContext.cs
  85. 4047
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200826123655_ChangesForOrderRefund.Designer.cs
  86. 116
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200826123655_ChangesForOrderRefund.cs
  87. 4047
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200826124156_AddedRefundItemOrderLineToDbContext.Designer.cs
  88. 105
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200826124156_AddedRefundItemOrderLineToDbContext.cs
  89. 4183
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200826141904_AddedPrepaymentModule.Designer.cs
  90. 86
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200826141904_AddedPrepaymentModule.cs
  91. 4180
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200826214249_RemovedCurrencyFromPaymentItem.Designer.cs
  92. 23
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200826214249_RemovedCurrencyFromPaymentItem.cs
  93. 4174
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200828083149_RemovedSpecifiedInventoryProviderName.Designer.cs
  94. 33
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200828083149_RemovedSpecifiedInventoryProviderName.cs
  95. 4225
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200831094628_AddedTransactionEntityToStoresModule.Designer.cs
  96. 39
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200831094628_AddedTransactionEntityToStoresModule.cs
  97. 4225
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200831101341_ConfiguredHasColumnTypeForTransaction.Designer.cs
  98. 29
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200831101341_ConfiguredHasColumnTypeForTransaction.cs
  99. 4231
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200831122106_AddedActualTotalPricePropertyToOrderEntity.Designer.cs
  100. 35
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200831122106_AddedActualTotalPricePropertyToOrderEntity.cs

8
Directory.Build.props

@ -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>

7
EShop.sln

@ -19,8 +19,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EShopSample.Application.Tes
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EShopSample.Web.Tests", "samples\EShopSample\aspnet-core\test\EShopSample.Web.Tests\EShopSample.Web.Tests.csproj", "{5F1B28C6-8D0C-4155-92D0-252F7EA5F674}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EShopSample.EntityFrameworkCore.DbMigrations", "samples\EShopSample\aspnet-core\src\EShopSample.EntityFrameworkCore.DbMigrations\EShopSample.EntityFrameworkCore.DbMigrations.csproj", "{0372FA84-C517-4EB3-9A9F-B9ACAC0CA5E0}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EShopSample.Domain.Shared", "samples\EShopSample\aspnet-core\src\EShopSample.Domain.Shared\EShopSample.Domain.Shared.csproj", "{42F719ED-8413-4895-B5B4-5AB56079BC66}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EShopSample.Application.Contracts", "samples\EShopSample\aspnet-core\src\EShopSample.Application.Contracts\EShopSample.Application.Contracts.csproj", "{520659C8-C734-4298-A3DA-B539DB9DFC0B}"
@ -373,10 +371,6 @@ Global
{5F1B28C6-8D0C-4155-92D0-252F7EA5F674}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5F1B28C6-8D0C-4155-92D0-252F7EA5F674}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5F1B28C6-8D0C-4155-92D0-252F7EA5F674}.Release|Any CPU.Build.0 = Release|Any CPU
{0372FA84-C517-4EB3-9A9F-B9ACAC0CA5E0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0372FA84-C517-4EB3-9A9F-B9ACAC0CA5E0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0372FA84-C517-4EB3-9A9F-B9ACAC0CA5E0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0372FA84-C517-4EB3-9A9F-B9ACAC0CA5E0}.Release|Any CPU.Build.0 = Release|Any CPU
{42F719ED-8413-4895-B5B4-5AB56079BC66}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{42F719ED-8413-4895-B5B4-5AB56079BC66}.Debug|Any CPU.Build.0 = Debug|Any CPU
{42F719ED-8413-4895-B5B4-5AB56079BC66}.Release|Any CPU.ActiveCfg = Release|Any CPU
@ -914,7 +908,6 @@ Global
{04DBDB01-70F4-4E06-B468-8F87850B22BE} = {FE0A5FD6-AEE7-4738-9A6D-261BF086704D}
{50B2631D-129C-47B3-A587-029CCD6099BC} = {04DBDB01-70F4-4E06-B468-8F87850B22BE}
{5F1B28C6-8D0C-4155-92D0-252F7EA5F674} = {04DBDB01-70F4-4E06-B468-8F87850B22BE}
{0372FA84-C517-4EB3-9A9F-B9ACAC0CA5E0} = {CA9AC87F-097E-4F15-8393-4BC07735A5B0}
{42F719ED-8413-4895-B5B4-5AB56079BC66} = {CA9AC87F-097E-4F15-8393-4BC07735A5B0}
{520659C8-C734-4298-A3DA-B539DB9DFC0B} = {CA9AC87F-097E-4F15-8393-4BC07735A5B0}
{4164BDF7-F527-4E85-9CE6-E3C2D7426A27} = {CA9AC87F-097E-4F15-8393-4BC07735A5B0}

2
azure-pipelines.yml

@ -105,7 +105,7 @@ stages:
displayName: 'update database'
inputs:
script: |
dotnet ef database update --project samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/EShopSample.EntityFrameworkCore.DbMigrations.csproj -s samples/EShopSample/aspnet-core/src/EShopSample.Web/EShopSample.Web.csproj
dotnet ef database update --project samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/EShopSample.EntityFrameworkCore.csproj -s samples/EShopSample/aspnet-core/src/EShopSample.Web/EShopSample.Web.csproj
- task: CmdLine@2
inputs:

2
common.props

@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>2.2.2</Version>
<Version>2.2.3</Version>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>EasyAbp Team</Authors>

2
samples/EShopSample/aspnet-core/src/EShopSample.DbMigrator/EShopSample.DbMigrator.csproj

@ -28,7 +28,7 @@
<ItemGroup>
<PackageReference Include="Volo.Abp.Autofac" Version="$(AbpVersion)" />
<ProjectReference Include="..\EShopSample.Application.Contracts\EShopSample.Application.Contracts.csproj" />
<ProjectReference Include="..\EShopSample.EntityFrameworkCore.DbMigrations\EShopSample.EntityFrameworkCore.DbMigrations.csproj" />
<ProjectReference Include="..\EShopSample.EntityFrameworkCore\EShopSample.EntityFrameworkCore.csproj" />
</ItemGroup>
</Project>

2
samples/EShopSample/aspnet-core/src/EShopSample.DbMigrator/EShopSampleDbMigratorModule.cs

@ -7,7 +7,7 @@ namespace EShopSample.DbMigrator
{
[DependsOn(
typeof(AbpAutofacModule),
typeof(EShopSampleEntityFrameworkCoreDbMigrationsModule),
typeof(EShopSampleEntityFrameworkCoreModule),
typeof(EShopSampleApplicationContractsModule)
)]
public class EShopSampleDbMigratorModule : AbpModule

63
samples/EShopSample/aspnet-core/src/EShopSample.Domain/Users/AppUser.cs

@ -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()
{
}
}
}

25
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/EShopSample.EntityFrameworkCore.DbMigrations.csproj

@ -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>

16
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/EntityFrameworkCore/EShopSampleEntityFrameworkCoreDbMigrationsModule.cs

@ -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>();
}
}
}

62
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/EntityFrameworkCore/EShopSampleMigrationsDbContext.cs

@ -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();
}
}
}

3123
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200526074907_AddedCodeToProductSku.Designer.cs

File diff suppressed because it is too large

1715
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200526074907_AddedCodeToProductSku.cs

File diff suppressed because it is too large

3123
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200527083620_ChangedToSerializedEntityData.Designer.cs

File diff suppressed because it is too large

51
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200527083620_ChangedToSerializedEntityData.cs

@ -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);
}
}
}

3129
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200602074752_AddedPaymentAndRefundEntities.Designer.cs

File diff suppressed because it is too large

32
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200602074752_AddedPaymentAndRefundEntities.cs

@ -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");
}
}
}

3367
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200603115405_MadePaymentAndRefundExclusiveTableEntities.Designer.cs

File diff suppressed because it is too large

143
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200603115405_MadePaymentAndRefundExclusiveTableEntities.cs

@ -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);
}
}
}

3533
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200610111529_UpgradedToAbp2_9_0.Designer.cs

File diff suppressed because it is too large

127
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200610111529_UpgradedToAbp2_9_0.cs

@ -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");
}
}
}

3540
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200612085218_AddedOrderNumberProperty.Designer.cs

File diff suppressed because it is too large

33
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200612085218_AddedOrderNumberProperty.cs

@ -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");
}
}
}

3543
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200612105914_AddedOrderMaxQuantityProperty.Designer.cs

File diff suppressed because it is too large

23
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200612105914_AddedOrderMaxQuantityProperty.cs

@ -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");
}
}
}

3543
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200620070213_ChangedMoneyToDecimal20_8.Designer.cs

File diff suppressed because it is too large

303
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200620070213_ChangedMoneyToDecimal20_8.cs

@ -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)");
}
}
}

3561
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200620145307_UsedEasyAbpTreesModule.Designer.cs

File diff suppressed because it is too large

63
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200620145307_UsedEasyAbpTreesModule.cs

@ -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");
}
}
}

3589
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200624075154_UpgradedPaymentServiceModuleTo0_3_7.Designer.cs

File diff suppressed because it is too large

219
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200624075154_UpgradedPaymentServiceModuleTo0_3_7.cs

@ -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);
}
}
}

3601
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200624181705_AddedMissingPropertiesInPaymentAndRefund.Designer.cs

File diff suppressed because it is too large

52
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200624181705_AddedMissingPropertiesInPaymentAndRefund.cs

@ -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");
}
}
}

3601
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200624191051_AddedColumnTypeOfPendingRefundAmount.Designer.cs

File diff suppressed because it is too large

45
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200624191051_AddedColumnTypeOfPendingRefundAmount.cs

@ -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)");
}
}
}

3601
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200627172358_RenamedCancelledToCanceled.Designer.cs

File diff suppressed because it is too large

64
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200627172358_RenamedCancelledToCanceled.cs

@ -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");
}
}
}

3625
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200702100757_UpgradedAbpTo3_0_0.Designer.cs

File diff suppressed because it is too large

519
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200702100757_UpgradedAbpTo3_0_0.cs

@ -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);
}
}
}

3699
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704104743_AddedMediaResourcesToProductSku.Designer.cs

File diff suppressed because it is too large

59
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704104743_AddedMediaResourcesToProductSku.cs

@ -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");
}
}
}

3699
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704130321_AddedDecimalConfigurationsToBasketItem.Designer.cs

File diff suppressed because it is too large

61
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704130321_AddedDecimalConfigurationsToBasketItem.cs

@ -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)");
}
}
}

3702
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704130714_AddedStoreIdToBasketItem.Designer.cs

File diff suppressed because it is too large

24
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704130714_AddedStoreIdToBasketItem.cs

@ -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");
}
}
}

3762
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704181535_CreatedProductUpdateEntity.Designer.cs

File diff suppressed because it is too large

44
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704181535_CreatedProductUpdateEntity.cs

@ -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");
}
}
}

3770
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704182511_ChangeBasketItemToAuditedEntity.Designer.cs

File diff suppressed because it is too large

32
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704182511_ChangeBasketItemToAuditedEntity.cs

@ -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");
}
}
}

3776
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704195327_AddInventoryAndIsInvalidToBasketItem.Designer.cs

File diff suppressed because it is too large

33
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704195327_AddInventoryAndIsInvalidToBasketItem.cs

@ -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");
}
}
}

3772
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704200233_RemoveTenantIdFromProductUpdate.Designer.cs

File diff suppressed because it is too large

24
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200704200233_RemoveTenantIdFromProductUpdate.cs

@ -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);
}
}
}

3831
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200705195503_RedesignedInventory.Designer.cs

File diff suppressed because it is too large

68
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200705195503_RedesignedInventory.cs

@ -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);
}
}
}

3837
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200706060054_AddedSpecifiedInventoryProviderName.Designer.cs

File diff suppressed because it is too large

31
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200706060054_AddedSpecifiedInventoryProviderName.cs

@ -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");
}
}
}

3837
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200706070250_ChangedSoldToLong.Designer.cs

File diff suppressed because it is too large

27
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200706070250_ChangedSoldToLong.cs

@ -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));
}
}
}

3840
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200708064137_AddedProductTypeNameToOrderLine.Designer.cs

File diff suppressed because it is too large

22
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200708064137_AddedProductTypeNameToOrderLine.cs

@ -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");
}
}
}

3840
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710144500_AddedNameAndRemovedParentCategoryId.Designer.cs

File diff suppressed because it is too large

33
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710144500_AddedNameAndRemovedParentCategoryId.cs

@ -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);
}
}
}

3840
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710151847_RenamedCodeToName.Designer.cs

File diff suppressed because it is too large

33
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710151847_RenamedCodeToName.cs

@ -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");
}
}
}

3844
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710152518_MadeUniqueNameUniqueIndex.Designer.cs

File diff suppressed because it is too large

40
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710152518_MadeUniqueNameUniqueIndex.cs

@ -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);
}
}
}

3848
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710153132_RenamedNameToUniqueNameInCategory.Designer.cs

File diff suppressed because it is too large

43
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710153132_RenamedNameToUniqueNameInCategory.cs

@ -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);
}
}
}

3854
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710160345_RenamedNameToUniqueName.Designer.cs

File diff suppressed because it is too large

107
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710160345_RenamedNameToUniqueName.cs

@ -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);
}
}
}

3860
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710163538_AddedSkuName.Designer.cs

File diff suppressed because it is too large

31
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200710163538_AddedSkuName.cs

@ -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");
}
}
}

3864
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200804190805_MovedStoreIdFromPaymentToPaymentItem.Designer.cs

File diff suppressed because it is too large

43
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200804190805_MovedStoreIdFromPaymentToPaymentItem.cs

@ -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);
}
}
}

3865
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200824110408_UpgradedPaymentServiceTo1_0_0.Designer.cs

File diff suppressed because it is too large

423
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200824110408_UpgradedPaymentServiceTo1_0_0.cs

@ -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);
}
}
}

3865
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200825104114_AddedEasyAbpPrefix.Designer.cs

File diff suppressed because it is too large

837
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200825104114_AddedEasyAbpPrefix.cs

@ -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);
}
}
}

3930
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200825130202_UpgradedPaymentServiceTo1_1_0.Designer.cs

File diff suppressed because it is too large

110
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200825130202_UpgradedPaymentServiceTo1_1_0.cs

@ -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);
}
}
}

3989
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200826083027_AddedRefundItem.Designer.cs

File diff suppressed because it is too large

52
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200826083027_AddedRefundItem.cs

@ -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");
}
}
}

3998
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200826083250_AddedRefundItemToDbContext.Designer.cs

File diff suppressed because it is too large

105
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200826083250_AddedRefundItemToDbContext.cs

@ -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);
}
}
}

4047
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200826123655_ChangesForOrderRefund.Designer.cs

File diff suppressed because it is too large

116
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200826123655_ChangesForOrderRefund.cs

@ -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));
}
}
}

4047
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200826124156_AddedRefundItemOrderLineToDbContext.Designer.cs

File diff suppressed because it is too large

105
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200826124156_AddedRefundItemOrderLineToDbContext.cs

@ -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);
}
}
}

4183
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200826141904_AddedPrepaymentModule.Designer.cs

File diff suppressed because it is too large

86
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200826141904_AddedPrepaymentModule.cs

@ -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");
}
}
}

4180
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200826214249_RemovedCurrencyFromPaymentItem.Designer.cs

File diff suppressed because it is too large

23
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200826214249_RemovedCurrencyFromPaymentItem.cs

@ -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);
}
}
}

4174
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200828083149_RemovedSpecifiedInventoryProviderName.Designer.cs

File diff suppressed because it is too large

33
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200828083149_RemovedSpecifiedInventoryProviderName.cs

@ -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);
}
}
}

4225
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200831094628_AddedTransactionEntityToStoresModule.Designer.cs

File diff suppressed because it is too large

39
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200831094628_AddedTransactionEntityToStoresModule.cs

@ -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");
}
}
}

4225
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200831101341_ConfiguredHasColumnTypeForTransaction.Designer.cs

File diff suppressed because it is too large

29
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200831101341_ConfiguredHasColumnTypeForTransaction.cs

@ -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)");
}
}
}

4231
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200831122106_AddedActualTotalPricePropertyToOrderEntity.Designer.cs

File diff suppressed because it is too large

35
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/Migrations/20200831122106_AddedActualTotalPricePropertyToOrderEntity.cs

@ -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…
Cancel
Save