mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
migrations !wip
This commit is contained in:
parent
82c353a727
commit
21cb5820dd
3 changed files with 1128 additions and 0 deletions
1091
src/Ombi.Store/Migrations/20180828083219_MusicIssues.Designer.cs
generated
Normal file
1091
src/Ombi.Store/Migrations/20180828083219_MusicIssues.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
33
src/Ombi.Store/Migrations/20180828083219_MusicIssues.cs
Normal file
33
src/Ombi.Store/Migrations/20180828083219_MusicIssues.cs
Normal file
|
@ -0,0 +1,33 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace Ombi.Store.Migrations
|
||||
{
|
||||
public partial class MusicIssues : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "AlbumId",
|
||||
table: "RecentlyAddedLog",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "AddedAt",
|
||||
table: "LidarrAlbumCache",
|
||||
nullable: false,
|
||||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "AlbumId",
|
||||
table: "RecentlyAddedLog");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "AddedAt",
|
||||
table: "LidarrAlbumCache");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -249,6 +249,8 @@ namespace Ombi.Store.Migrations
|
|||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd();
|
||||
|
||||
b.Property<DateTime>("AddedAt");
|
||||
|
||||
b.Property<int>("ArtistId");
|
||||
|
||||
b.Property<string>("ForeignAlbumId");
|
||||
|
@ -489,6 +491,8 @@ namespace Ombi.Store.Migrations
|
|||
|
||||
b.Property<DateTime>("AddedAt");
|
||||
|
||||
b.Property<string>("AlbumId");
|
||||
|
||||
b.Property<int>("ContentId");
|
||||
|
||||
b.Property<int>("ContentType");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue