mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Including Orchard.Alias
--HG-- branch : 1.x
This commit is contained in:
24
src/Orchard.Web/Modules/Orchard.Alias/Migrations.cs
Normal file
24
src/Orchard.Web/Modules/Orchard.Alias/Migrations.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using Orchard.Data.Migration;
|
||||
|
||||
namespace Orchard.Alias {
|
||||
public class Migrations : DataMigrationImpl {
|
||||
public int Create() {
|
||||
SchemaBuilder
|
||||
.CreateTable("AliasRecord",
|
||||
table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<string>("Path", c => c.WithLength(2048))
|
||||
.Column<int>("Action_id")
|
||||
.Column<string>("RouteValues", c => c.Unlimited())
|
||||
.Column<string>("Source", c => c.WithLength(256)))
|
||||
.CreateTable("ActionRecord",
|
||||
table => table
|
||||
.Column<int>("Id", column => column.PrimaryKey().Identity())
|
||||
.Column<string>("Area")
|
||||
.Column<string>("Controller")
|
||||
.Column<string>("Action"));
|
||||
return 1;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user