Dump migrations
This commit is contained in:
parent
a64bd39266
commit
94c7c7ac1b
|
|
@ -2,6 +2,7 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using TwilioSMSReceiver.Data;
|
||||
|
|
@ -11,25 +12,31 @@ using TwilioSMSReceiver.Data;
|
|||
namespace TwilioSMSReceiver.Data.Migrations
|
||||
{
|
||||
[DbContext(typeof(SMSDbCtx))]
|
||||
[Migration("20211229034231_InitialMigrationSQLite")]
|
||||
partial class InitialMigrationSQLite
|
||||
[Migration("20211231074942_InitialMigration")]
|
||||
partial class InitialMigration
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder.HasAnnotation("ProductVersion", "6.0.1");
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "6.0.1")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
||||
|
||||
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
|
||||
|
||||
modelBuilder.Entity("TwilioSMSReceiver.Data.Models.MMSModel", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("INTEGER");
|
||||
.HasColumnType("int");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
||||
|
||||
b.Property<string>("OriginalMMSData")
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<int>("SMSModelId")
|
||||
.HasColumnType("INTEGER");
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
|
|
@ -42,10 +49,12 @@ namespace TwilioSMSReceiver.Data.Migrations
|
|||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("INTEGER");
|
||||
.HasColumnType("int");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
||||
|
||||
b.Property<string>("WebHookUri")
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
|
|
@ -56,24 +65,26 @@ namespace TwilioSMSReceiver.Data.Migrations
|
|||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("INTEGER");
|
||||
.HasColumnType("int");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
||||
|
||||
b.Property<bool>("IsForwardedYet")
|
||||
.HasColumnType("INTEGER");
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<string>("MessageContents")
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("ReceivedNumber")
|
||||
.IsRequired()
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("SenderNumber")
|
||||
.IsRequired()
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<DateTime>("TimeReceived")
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
|
|
@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
||||
namespace TwilioSMSReceiver.Data.Migrations
|
||||
{
|
||||
public partial class InitialMigrationSQLite : Migration
|
||||
public partial class InitialMigration : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
|
@ -13,9 +13,9 @@ namespace TwilioSMSReceiver.Data.Migrations
|
|||
name: "MSTeamsWebHooks",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "INTEGER", nullable: false)
|
||||
.Annotation("Sqlite:Autoincrement", true),
|
||||
WebHookUri = table.Column<string>(type: "TEXT", nullable: true)
|
||||
Id = table.Column<int>(type: "int", nullable: false)
|
||||
.Annotation("SqlServer:Identity", "1, 1"),
|
||||
WebHookUri = table.Column<string>(type: "nvarchar(max)", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
|
|
@ -26,13 +26,13 @@ namespace TwilioSMSReceiver.Data.Migrations
|
|||
name: "SMSMessages",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "INTEGER", nullable: false)
|
||||
.Annotation("Sqlite:Autoincrement", true),
|
||||
ReceivedNumber = table.Column<string>(type: "TEXT", nullable: false),
|
||||
SenderNumber = table.Column<string>(type: "TEXT", nullable: false),
|
||||
TimeReceived = table.Column<DateTime>(type: "TEXT", nullable: false),
|
||||
MessageContents = table.Column<string>(type: "TEXT", nullable: true),
|
||||
IsForwardedYet = table.Column<bool>(type: "INTEGER", nullable: false)
|
||||
Id = table.Column<int>(type: "int", nullable: false)
|
||||
.Annotation("SqlServer:Identity", "1, 1"),
|
||||
ReceivedNumber = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
||||
SenderNumber = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
||||
TimeReceived = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||
MessageContents = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||
IsForwardedYet = table.Column<bool>(type: "bit", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
|
|
@ -43,10 +43,10 @@ namespace TwilioSMSReceiver.Data.Migrations
|
|||
name: "MMSMessages",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "INTEGER", nullable: false)
|
||||
.Annotation("Sqlite:Autoincrement", true),
|
||||
SMSModelId = table.Column<int>(type: "INTEGER", nullable: false),
|
||||
OriginalMMSData = table.Column<string>(type: "TEXT", nullable: true)
|
||||
Id = table.Column<int>(type: "int", nullable: false)
|
||||
.Annotation("SqlServer:Identity", "1, 1"),
|
||||
SMSModelId = table.Column<int>(type: "int", nullable: false),
|
||||
OriginalMMSData = table.Column<string>(type: "nvarchar(max)", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
|
|
@ -2,6 +2,7 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using TwilioSMSReceiver.Data;
|
||||
|
||||
|
|
@ -15,19 +16,25 @@ namespace TwilioSMSReceiver.Data.Migrations
|
|||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder.HasAnnotation("ProductVersion", "6.0.1");
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "6.0.1")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
||||
|
||||
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
|
||||
|
||||
modelBuilder.Entity("TwilioSMSReceiver.Data.Models.MMSModel", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("INTEGER");
|
||||
.HasColumnType("int");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
||||
|
||||
b.Property<string>("OriginalMMSData")
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<int>("SMSModelId")
|
||||
.HasColumnType("INTEGER");
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
|
|
@ -40,10 +47,12 @@ namespace TwilioSMSReceiver.Data.Migrations
|
|||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("INTEGER");
|
||||
.HasColumnType("int");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
||||
|
||||
b.Property<string>("WebHookUri")
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
|
|
@ -54,24 +63,26 @@ namespace TwilioSMSReceiver.Data.Migrations
|
|||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("INTEGER");
|
||||
.HasColumnType("int");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
||||
|
||||
b.Property<bool>("IsForwardedYet")
|
||||
.HasColumnType("INTEGER");
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.Property<string>("MessageContents")
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("ReceivedNumber")
|
||||
.IsRequired()
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("SenderNumber")
|
||||
.IsRequired()
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<DateTime>("TimeReceived")
|
||||
.HasColumnType("TEXT");
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,11 @@
|
|||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.1" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="6.0.1" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Migrations\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
|||
|
|
@ -15,4 +15,9 @@
|
|||
<PackageReference Include="Microsoft.Identity.Web.UI" Version="1.16.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\TwilioSMSReceiver.Common\TwilioSMSReceiver.Common.csproj" />
|
||||
<ProjectReference Include="..\TwilioSMSReceiver.Data\TwilioSMSReceiver.Data.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
|||
Loading…
Reference in New Issue