Last change
on this file since a26f6a1 was 7a983b0, checked in by Danilo <danilo.najkov@…>, 2 years ago |
move files
|
-
Property mode
set to
100644
|
File size:
678 bytes
|
Rev | Line | |
---|
[057037b] | 1 | using Microsoft.EntityFrameworkCore.Migrations;
|
---|
| 2 |
|
---|
| 3 | #nullable disable
|
---|
| 4 |
|
---|
| 5 | namespace backend.Migrations
|
---|
| 6 | {
|
---|
| 7 | public partial class AddPersons : Migration
|
---|
| 8 | {
|
---|
| 9 | protected override void Up(MigrationBuilder migrationBuilder)
|
---|
| 10 | {
|
---|
| 11 | migrationBuilder.AddColumn<int>(
|
---|
| 12 | name: "Persons",
|
---|
| 13 | table: "Reservations",
|
---|
| 14 | type: "integer",
|
---|
| 15 | nullable: false,
|
---|
| 16 | defaultValue: 0);
|
---|
| 17 | }
|
---|
| 18 |
|
---|
| 19 | protected override void Down(MigrationBuilder migrationBuilder)
|
---|
| 20 | {
|
---|
| 21 | migrationBuilder.DropColumn(
|
---|
| 22 | name: "Persons",
|
---|
| 23 | table: "Reservations");
|
---|
| 24 | }
|
---|
| 25 | }
|
---|
| 26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.