70 lines
2.3 KiB
C#
70 lines
2.3 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace FurnitureAssemblyDatabaseImplement.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class lab07 : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "DateImplement",
|
|
table: "Orders",
|
|
type: "timestamp without time zone",
|
|
nullable: true,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "timestamp with time zone",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "DateCreate",
|
|
table: "Orders",
|
|
type: "timestamp without time zone",
|
|
nullable: false,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "timestamp with time zone");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "DateDelivery",
|
|
table: "Messages",
|
|
type: "timestamp without time zone",
|
|
nullable: false,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "timestamp with time zone");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "DateImplement",
|
|
table: "Orders",
|
|
type: "timestamp with time zone",
|
|
nullable: true,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "timestamp without time zone",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "DateCreate",
|
|
table: "Orders",
|
|
type: "timestamp with time zone",
|
|
nullable: false,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "timestamp without time zone");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "DateDelivery",
|
|
table: "Messages",
|
|
type: "timestamp with time zone",
|
|
nullable: false,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "timestamp without time zone");
|
|
}
|
|
}
|
|
}
|