mirror of https://github.com/EasyAbp/EShop.git
16 changed files with 9179 additions and 42 deletions
File diff suppressed because it is too large
@ -0,0 +1,34 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class RemovedUsableTimePropertiesFromCoupon : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "UsableBeginTime", |
|||
table: "EasyAbpEShopPluginsCouponsCoupons"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "UsableEndTime", |
|||
table: "EasyAbpEShopPluginsCouponsCoupons"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AddColumn<DateTime>( |
|||
name: "UsableBeginTime", |
|||
table: "EasyAbpEShopPluginsCouponsCoupons", |
|||
type: "datetime2", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<DateTime>( |
|||
name: "UsableEndTime", |
|||
table: "EasyAbpEShopPluginsCouponsCoupons", |
|||
type: "datetime2", |
|||
nullable: true); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -0,0 +1,23 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class AddExpirationTimeToCoupon : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AddColumn<DateTime>( |
|||
name: "ExpirationTime", |
|||
table: "EasyAbpEShopPluginsCouponsCoupons", |
|||
nullable: true); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "ExpirationTime", |
|||
table: "EasyAbpEShopPluginsCouponsCoupons"); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue