Last change
on this file since 49b0bbd 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
|
Rev | Line | |
---|
[cc4db18] | 1 | using System;
|
---|
| 2 | using Microsoft.EntityFrameworkCore.Migrations;
|
---|
| 3 |
|
---|
| 4 | #nullable disable
|
---|
| 5 |
|
---|
| 6 | namespace 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.