source: resTools_backend/backend/Migrations/20220705164500_Restaurant-Fields.cs@ cc4db18

Last change on this file since cc4db18 was cc4db18, checked in by Danilo <danilo.najkov@…>, 2 years ago

reservation module changes + contact module + menu module

  • Property mode set to 100644
File size: 1.3 KB
Line 
1using System;
2using Microsoft.EntityFrameworkCore.Migrations;
3
4#nullable disable
5
6namespace backend.Migrations
7{
8 public partial class RestaurantFields : Migration
9 {
10 protected override void Up(MigrationBuilder migrationBuilder)
11 {
12 migrationBuilder.AddColumn<string>(
13 name: "Address",
14 table: "Restoraunts",
15 type: "text",
16 nullable: false,
17 defaultValue: "");
18
19 migrationBuilder.AddColumn<byte[]>(
20 name: "Image",
21 table: "Restoraunts",
22 type: "bytea",
23 nullable: false,
24 defaultValue: new byte[0]);
25
26 migrationBuilder.AddColumn<string>(
27 name: "Phone",
28 table: "Restoraunts",
29 type: "text",
30 nullable: false,
31 defaultValue: "");
32 }
33
34 protected override void Down(MigrationBuilder migrationBuilder)
35 {
36 migrationBuilder.DropColumn(
37 name: "Address",
38 table: "Restoraunts");
39
40 migrationBuilder.DropColumn(
41 name: "Image",
42 table: "Restoraunts");
43
44 migrationBuilder.DropColumn(
45 name: "Phone",
46 table: "Restoraunts");
47 }
48 }
49}
Note: See TracBrowser for help on using the repository browser.