1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- using Microsoft.EntityFrameworkCore.Migrations;
- #nullable disable
- #pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
- namespace MTWorkHR.Infrastructure.Migrations
- {
- /// <inheritdoc />
- public partial class addQualif_Univ : Migration
- {
- /// <inheritdoc />
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.InsertData(
- table: "Qualifications",
- columns: new[] { "Id", "NameAr", "NameEn" },
- values: new object[,]
- {
- { 1L, "بكالوريوس", "BSC" },
- { 2L, "درجة الماجيستير", "Master" },
- { 3L, "درحة الدكتوراه", "Doctor" }
- });
- migrationBuilder.InsertData(
- table: "Universities",
- columns: new[] { "Id", "NameAr", "NameEn" },
- values: new object[,]
- {
- { 1L, "جامعة الملك فهد", "Fahd Univ" },
- { 2L, "جامعة الرياض", "Riydh Univ" },
- { 3L, "جامعة جدة", "Geda Univ" }
- });
- }
- /// <inheritdoc />
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DeleteData(
- table: "Qualifications",
- keyColumn: "Id",
- keyValue: 1L);
- migrationBuilder.DeleteData(
- table: "Qualifications",
- keyColumn: "Id",
- keyValue: 2L);
- migrationBuilder.DeleteData(
- table: "Qualifications",
- keyColumn: "Id",
- keyValue: 3L);
- migrationBuilder.DeleteData(
- table: "Universities",
- keyColumn: "Id",
- keyValue: 1L);
- migrationBuilder.DeleteData(
- table: "Universities",
- keyColumn: "Id",
- keyValue: 2L);
- migrationBuilder.DeleteData(
- table: "Universities",
- keyColumn: "Id",
- keyValue: 3L);
- }
- }
- }
|