Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolves #528 LimitedToStores is required on payment provider rather …
…than plugin level
- Loading branch information
Showing
23 changed files
with
344 additions
and
339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 0 additions & 18 deletions
18
src/Libraries/SmartStore.Data/Migrations/201802081135066_ShippingMethodMultistore.cs
This file was deleted.
Oops, something went wrong.
126 changes: 0 additions & 126 deletions
126
src/Libraries/SmartStore.Data/Migrations/201802081135066_ShippingMethodMultistore.resx
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...5066_ShippingMethodMultistore.Designer.cs → ...0029_ShippingMethodMultistore.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
38 changes: 38 additions & 0 deletions
38
src/Libraries/SmartStore.Data/Migrations/201802081830029_ShippingMethodMultistore.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
namespace SmartStore.Data.Migrations | ||
{ | ||
using System; | ||
using System.Data.Entity.Migrations; | ||
|
||
public partial class ShippingMethodMultistore : DbMigration | ||
{ | ||
public override void Up() | ||
{ | ||
DropForeignKey("dbo.ShippingMethodRestrictions", "ShippingMethod_Id", "dbo.ShippingMethod"); | ||
DropForeignKey("dbo.ShippingMethodRestrictions", "Country_Id", "dbo.Country"); | ||
DropIndex("dbo.ShippingMethodRestrictions", new[] { "ShippingMethod_Id" }); | ||
DropIndex("dbo.ShippingMethodRestrictions", new[] { "Country_Id" }); | ||
AddColumn("dbo.ShippingMethod", "LimitedToStores", c => c.Boolean(nullable: false)); | ||
AddColumn("dbo.PaymentMethod", "LimitedToStores", c => c.Boolean(nullable: false)); | ||
DropTable("dbo.ShippingMethodRestrictions"); | ||
} | ||
|
||
public override void Down() | ||
{ | ||
CreateTable( | ||
"dbo.ShippingMethodRestrictions", | ||
c => new | ||
{ | ||
ShippingMethod_Id = c.Int(nullable: false), | ||
Country_Id = c.Int(nullable: false), | ||
}) | ||
.PrimaryKey(t => new { t.ShippingMethod_Id, t.Country_Id }); | ||
|
||
DropColumn("dbo.PaymentMethod", "LimitedToStores"); | ||
DropColumn("dbo.ShippingMethod", "LimitedToStores"); | ||
CreateIndex("dbo.ShippingMethodRestrictions", "Country_Id"); | ||
CreateIndex("dbo.ShippingMethodRestrictions", "ShippingMethod_Id"); | ||
AddForeignKey("dbo.ShippingMethodRestrictions", "Country_Id", "dbo.Country", "Id", cascadeDelete: true); | ||
AddForeignKey("dbo.ShippingMethodRestrictions", "ShippingMethod_Id", "dbo.ShippingMethod", "Id", cascadeDelete: true); | ||
} | ||
} | ||
} |
126 changes: 126 additions & 0 deletions
126
src/Libraries/SmartStore.Data/Migrations/201802081830029_ShippingMethodMultistore.resx
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.