Ignore:
Timestamp:
11/05/20 07:36:29 (3 years ago)
Author:
DimitarSlezenkovski <dslezenkovski@…>
Branches:
master
Children:
ad60966
Parents:
d23bf72
Message:

Add migration and stuff

File:
1 moved

Legend:

Unmodified
Added
Removed
  • FarmatikoData/Migrations/20201105063549_InitialMigration.cs

    rd23bf72 rafc9a9a  
    132132
    133133            migrationBuilder.CreateTable(
    134                 name: "MedicineLists",
     134                name: "MedicineList",
    135135                columns: table => new
    136136                {
     
    145145                constraints: table =>
    146146                {
    147                     table.PrimaryKey("PK_MedicineLists", x => x.Id);
    148                     table.ForeignKey(
    149                         name: "FK_MedicineLists_Medicines_MedicineId",
     147                    table.PrimaryKey("PK_MedicineList", x => x.Id);
     148                    table.ForeignKey(
     149                        name: "FK_MedicineList_Medicines_MedicineId",
    150150                        column: x => x.MedicineId,
    151151                        principalTable: "Medicines",
     
    153153                        onDelete: ReferentialAction.Cascade);
    154154                    table.ForeignKey(
    155                         name: "FK_MedicineLists_PharmacyHeads_PharmacyHeadId",
     155                        name: "FK_MedicineList_PharmacyHeads_PharmacyHeadId",
    156156                        column: x => x.PharmacyHeadId,
    157157                        principalTable: "PharmacyHeads",
     
    219219
    220220            migrationBuilder.CreateIndex(
    221                 name: "IX_MedicineLists_MedicineId",
    222                 table: "MedicineLists",
     221                name: "IX_MedicineList_MedicineId",
     222                table: "MedicineList",
    223223                column: "MedicineId");
    224224
    225225            migrationBuilder.CreateIndex(
    226                 name: "IX_MedicineLists_PharmacyHeadId",
    227                 table: "MedicineLists",
     226                name: "IX_MedicineList_PharmacyHeadId",
     227                table: "MedicineList",
    228228                column: "PharmacyHeadId");
    229229
     
    250250
    251251            migrationBuilder.DropTable(
    252                 name: "MedicineLists");
     252                name: "MedicineList");
    253253
    254254            migrationBuilder.DropTable(
Note: See TracChangeset for help on using the changeset viewer.