source: resTools_backend/backend/Migrations/20220918134340_MenuUpdatesAndVIP.cs@ 13f1472

Last change on this file since 13f1472 was 13f1472, checked in by Danilo <danilo.najkov@…>, 22 months ago

vip functionallity + menu fields + alergens filtering + google/fb login + email queueing

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