Dump migrations

This commit is contained in:
2021-12-31 00:12:38 -08:00
parent a64bd39266
commit 94c7c7ac1b
5 changed files with 73 additions and 41 deletions

View File

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