diff --git a/YouTubeChannelDownloader/Migrations/20210826231651_InitialCreate.Designer.cs b/YouTubeChannelDownloader/Migrations/20210826231651_InitialCreate.Designer.cs new file mode 100644 index 0000000..30fcb50 --- /dev/null +++ b/YouTubeChannelDownloader/Migrations/20210826231651_InitialCreate.Designer.cs @@ -0,0 +1,39 @@ +// +using System; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using YouTubeChannelDownloader.Data; + +namespace YouTubeChannelDownloader.Migrations +{ + [DbContext(typeof(DownloadedVideosContext))] + [Migration("20210826231651_InitialCreate")] + partial class InitialCreate + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "5.0.9"); + + modelBuilder.Entity("YouTubeChannelDownloader.Models.DownloadedVideo", b => + { + b.Property("DownloadedVideoId") + .HasColumnType("TEXT"); + + b.Property("DownloadedDateTime") + .HasColumnType("TEXT"); + + b.Property("Title") + .HasColumnType("TEXT"); + + b.HasKey("DownloadedVideoId"); + + b.ToTable("DownloadedVideos"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/YouTubeChannelDownloader/Migrations/20210826231651_InitialCreate.cs b/YouTubeChannelDownloader/Migrations/20210826231651_InitialCreate.cs new file mode 100644 index 0000000..a817609 --- /dev/null +++ b/YouTubeChannelDownloader/Migrations/20210826231651_InitialCreate.cs @@ -0,0 +1,30 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +namespace YouTubeChannelDownloader.Migrations +{ + public partial class InitialCreate : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "DownloadedVideos", + columns: table => new + { + DownloadedVideoId = table.Column(type: "TEXT", nullable: false), + DownloadedDateTime = table.Column(type: "TEXT", nullable: false), + Title = table.Column(type: "TEXT", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_DownloadedVideos", x => x.DownloadedVideoId); + }); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "DownloadedVideos"); + } + } +} diff --git a/YouTubeChannelDownloader/Migrations/DownloadedVideosContextModelSnapshot.cs b/YouTubeChannelDownloader/Migrations/DownloadedVideosContextModelSnapshot.cs new file mode 100644 index 0000000..a0eeff1 --- /dev/null +++ b/YouTubeChannelDownloader/Migrations/DownloadedVideosContextModelSnapshot.cs @@ -0,0 +1,37 @@ +// +using System; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using YouTubeChannelDownloader.Data; + +namespace YouTubeChannelDownloader.Migrations +{ + [DbContext(typeof(DownloadedVideosContext))] + partial class DownloadedVideosContextModelSnapshot : ModelSnapshot + { + protected override void BuildModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "5.0.9"); + + modelBuilder.Entity("YouTubeChannelDownloader.Models.DownloadedVideo", b => + { + b.Property("DownloadedVideoId") + .HasColumnType("TEXT"); + + b.Property("DownloadedDateTime") + .HasColumnType("TEXT"); + + b.Property("Title") + .HasColumnType("TEXT"); + + b.HasKey("DownloadedVideoId"); + + b.ToTable("DownloadedVideos"); + }); +#pragma warning restore 612, 618 + } + } +}