using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace ERPCore.Migrations
{
    /// <inheritdoc />
    public partial class AddAdjustmentGlPosting : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "GlJournalNo",
                table: "stock_adjustments",
                type: "character varying(30)",
                maxLength: 30,
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "GlPostedAt",
                table: "stock_adjustments",
                type: "timestamp with time zone",
                nullable: true);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "GlJournalNo",
                table: "stock_adjustments");

            migrationBuilder.DropColumn(
                name: "GlPostedAt",
                table: "stock_adjustments");
        }
    }
}
