mirror of
				https://github.com/Kareadita/Kavita.git
				synced 2025-10-31 02:27:04 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			81 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			81 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System;
 | |
| using Microsoft.EntityFrameworkCore.Migrations;
 | |
| 
 | |
| namespace API.Data.Migrations
 | |
| {
 | |
|     public partial class EntityTimestamps : Migration
 | |
|     {
 | |
|         protected override void Up(MigrationBuilder migrationBuilder)
 | |
|         {
 | |
|             migrationBuilder.AddColumn<DateTime>(
 | |
|                 name: "Created",
 | |
|                 table: "Volume",
 | |
|                 type: "TEXT",
 | |
|                 nullable: false,
 | |
|                 defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
 | |
| 
 | |
|             migrationBuilder.AddColumn<DateTime>(
 | |
|                 name: "LastModified",
 | |
|                 table: "Volume",
 | |
|                 type: "TEXT",
 | |
|                 nullable: false,
 | |
|                 defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
 | |
| 
 | |
|             migrationBuilder.AddColumn<DateTime>(
 | |
|                 name: "Created",
 | |
|                 table: "Series",
 | |
|                 type: "TEXT",
 | |
|                 nullable: false,
 | |
|                 defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
 | |
| 
 | |
|             migrationBuilder.AddColumn<DateTime>(
 | |
|                 name: "LastModified",
 | |
|                 table: "Series",
 | |
|                 type: "TEXT",
 | |
|                 nullable: false,
 | |
|                 defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
 | |
| 
 | |
|             migrationBuilder.AddColumn<DateTime>(
 | |
|                 name: "Created",
 | |
|                 table: "Library",
 | |
|                 type: "TEXT",
 | |
|                 nullable: false,
 | |
|                 defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
 | |
| 
 | |
|             migrationBuilder.AddColumn<DateTime>(
 | |
|                 name: "LastModified",
 | |
|                 table: "Library",
 | |
|                 type: "TEXT",
 | |
|                 nullable: false,
 | |
|                 defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
 | |
|         }
 | |
| 
 | |
|         protected override void Down(MigrationBuilder migrationBuilder)
 | |
|         {
 | |
|             migrationBuilder.DropColumn(
 | |
|                 name: "Created",
 | |
|                 table: "Volume");
 | |
| 
 | |
|             migrationBuilder.DropColumn(
 | |
|                 name: "LastModified",
 | |
|                 table: "Volume");
 | |
| 
 | |
|             migrationBuilder.DropColumn(
 | |
|                 name: "Created",
 | |
|                 table: "Series");
 | |
| 
 | |
|             migrationBuilder.DropColumn(
 | |
|                 name: "LastModified",
 | |
|                 table: "Series");
 | |
| 
 | |
|             migrationBuilder.DropColumn(
 | |
|                 name: "Created",
 | |
|                 table: "Library");
 | |
| 
 | |
|             migrationBuilder.DropColumn(
 | |
|                 name: "LastModified",
 | |
|                 table: "Library");
 | |
|         }
 | |
|     }
 | |
| }
 |