Skip to content
Snippets Groups Projects
Commit cbc48999 authored by esantangelo's avatar esantangelo
Browse files

data-load

parent ae1e211f
No related branches found
No related tags found
1 merge request!51data-load
This diff is collapsed.
......@@ -27,7 +27,6 @@ namespace Tsi1.DataLayer.EntityConfiguration
.IsRequired();
builder.Property(x => x.Password)
.IsRequired()
.HasColumnType("character varying(200)");
builder.HasOne(x => x.Tenant)
......
using Microsoft.EntityFrameworkCore.Migrations;
namespace Tsi1.DataLayer.Migrations
{
public partial class coursepasswordnullable : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "Password",
table: "Courses",
type: "character varying(200)",
nullable: true,
oldClrType: typeof(string),
oldType: "character varying(200)");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "Password",
table: "Courses",
type: "character varying(200)",
nullable: false,
oldClrType: typeof(string),
oldType: "character varying(200)",
oldNullable: true);
}
}
}
......@@ -168,7 +168,6 @@ namespace Tsi1.DataLayer.Migrations
.HasColumnType("character varying(50)");
b.Property<string>("Password")
.IsRequired()
.HasColumnType("character varying(200)");
b.Property<int>("TenantId")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment