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:
639 bytes
|
Rev | Line | |
---|
[057037b] | 1 | using Microsoft.EntityFrameworkCore.Migrations;
|
---|
| 2 |
|
---|
| 3 | #nullable disable
|
---|
| 4 |
|
---|
| 5 | namespace backend.Migrations
|
---|
| 6 | {
|
---|
| 7 | public partial class ChangePropname : Migration
|
---|
| 8 | {
|
---|
| 9 | protected override void Up(MigrationBuilder migrationBuilder)
|
---|
| 10 | {
|
---|
| 11 | migrationBuilder.RenameColumn(
|
---|
| 12 | name: "Username",
|
---|
| 13 | table: "Users",
|
---|
| 14 | newName: "Email");
|
---|
| 15 | }
|
---|
| 16 |
|
---|
| 17 | protected override void Down(MigrationBuilder migrationBuilder)
|
---|
| 18 | {
|
---|
| 19 | migrationBuilder.RenameColumn(
|
---|
| 20 | name: "Email",
|
---|
| 21 | table: "Users",
|
---|
| 22 | newName: "Username");
|
---|
| 23 | }
|
---|
| 24 | }
|
---|
| 25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.