Switch back to sqlite

This commit is contained in:
2022-01-04 12:06:43 -08:00
parent 94c7c7ac1b
commit a53fbb2064
6 changed files with 41 additions and 67 deletions

View File

@@ -2,7 +2,6 @@
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using TwilioSMSReceiver.Data;
@@ -16,25 +15,19 @@ namespace TwilioSMSReceiver.Data.Migrations
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "6.0.1")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
modelBuilder.HasAnnotation("ProductVersion", "6.0.1");
modelBuilder.Entity("TwilioSMSReceiver.Data.Models.MMSModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
.HasColumnType("INTEGER");
b.Property<string>("OriginalMMSData")
.HasColumnType("nvarchar(max)");
.HasColumnType("TEXT");
b.Property<int>("SMSModelId")
.HasColumnType("int");
.HasColumnType("INTEGER");
b.HasKey("Id");
@@ -47,12 +40,10 @@ namespace TwilioSMSReceiver.Data.Migrations
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
.HasColumnType("INTEGER");
b.Property<string>("WebHookUri")
.HasColumnType("nvarchar(max)");
.HasColumnType("TEXT");
b.HasKey("Id");
@@ -63,26 +54,24 @@ namespace TwilioSMSReceiver.Data.Migrations
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
.HasColumnType("INTEGER");
b.Property<bool>("IsForwardedYet")
.HasColumnType("bit");
.HasColumnType("INTEGER");
b.Property<string>("MessageContents")
.HasColumnType("nvarchar(max)");
.HasColumnType("TEXT");
b.Property<string>("ReceivedNumber")
.IsRequired()
.HasColumnType("nvarchar(max)");
.HasColumnType("TEXT");
b.Property<string>("SenderNumber")
.IsRequired()
.HasColumnType("nvarchar(max)");
.HasColumnType("TEXT");
b.Property<DateTime>("TimeReceived")
.HasColumnType("datetime2");
.HasColumnType("TEXT");
b.HasKey("Id");