using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Content.Server.Database.Migrations.Sqlite { /// public partial class Languages : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "language", columns: table => new { language_id = table.Column(type: "INTEGER", nullable: false) .Annotation("Sqlite:Autoincrement", true), profile_id = table.Column(type: "INTEGER", nullable: false), language_name = table.Column(type: "TEXT", nullable: false) }, constraints: table => { table.PrimaryKey("PK_language", x => x.language_id); table.ForeignKey( name: "FK_language_profile_profile_id", column: x => x.profile_id, principalTable: "profile", principalColumn: "profile_id", onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateIndex( name: "IX_language_profile_id", table: "language", column: "profile_id"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "language"); } } }