using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

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

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

            migrationBuilder.AddColumn<string>(
                name: "GlJournalNo",
                table: "purchase_returns",
                type: "character varying(30)",
                maxLength: 30,
                nullable: true);

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

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

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

            migrationBuilder.DropColumn(
                name: "GlJournalNo",
                table: "purchase_returns");

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