Updated Migrations
Updated Migrations to handle change of Int to Long (SQLite still uses integer field, but better safe if using something other then SQLite) Changed Primary Key for Video from VideoId to PlaylistItemId.
This commit is contained in:
parent
6970b792eb
commit
8e11008d58
5 changed files with 565 additions and 14 deletions
|
|
@ -1,5 +1,4 @@
|
|||
// <auto-generated />
|
||||
|
||||
using FreeTubeSync.Database;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
|
|
@ -81,10 +80,10 @@ namespace FreeTubeSync.Migrations
|
|||
b.Property<string>("_id")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<int>("createdAt")
|
||||
b.Property<long>("createdAt")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int>("lastUpdatedAt")
|
||||
b.Property<long>("lastUpdatedAt")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<string>("playlistName")
|
||||
|
|
@ -96,7 +95,7 @@ namespace FreeTubeSync.Migrations
|
|||
|
||||
b.HasKey("_id");
|
||||
|
||||
b.ToTable("Playlists");
|
||||
b.ToTable("Playlists", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("FreeTubeSync.Model.Profile", b =>
|
||||
|
|
@ -118,7 +117,7 @@ namespace FreeTubeSync.Migrations
|
|||
|
||||
b.HasKey("_id");
|
||||
|
||||
b.ToTable("Profiles");
|
||||
b.ToTable("Profiles", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("FreeTubeSync.Model.SearchHistory", b =>
|
||||
|
|
@ -126,7 +125,7 @@ namespace FreeTubeSync.Migrations
|
|||
b.Property<string>("_id")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<int>("lastUpdatedAt")
|
||||
b.Property<long>("lastUpdatedAt")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.HasKey("_id");
|
||||
|
|
@ -173,7 +172,7 @@ namespace FreeTubeSync.Migrations
|
|||
|
||||
modelBuilder.Entity("FreeTubeSync.Model.Video", b =>
|
||||
{
|
||||
b.Property<string>("videoId")
|
||||
b.Property<string>("playlistItemId")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("Playlist_id")
|
||||
|
|
@ -191,14 +190,10 @@ namespace FreeTubeSync.Migrations
|
|||
.IsRequired()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("playlistItemId")
|
||||
.IsRequired()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<int>("pubished")
|
||||
b.Property<long>("pubished")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int>("timeAdded")
|
||||
b.Property<long>("timeAdded")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<string>("title")
|
||||
|
|
@ -209,7 +204,11 @@ namespace FreeTubeSync.Migrations
|
|||
.IsRequired()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("videoId");
|
||||
b.Property<string>("videoId")
|
||||
.IsRequired()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("playlistItemId");
|
||||
|
||||
b.HasIndex("Playlist_id");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue