source: resTools_backend/backend/Migrations/20220411110455_Change-Propname.cs

Last change on this file was 7a983b0, checked in by Danilo <danilo.najkov@…>, 3 years ago

move files

  • Property mode set to 100644
File size: 639 bytes
Line 
1using Microsoft.EntityFrameworkCore.Migrations;
2
3#nullable disable
4
5namespace 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.