1 | using System;
|
---|
2 | using Microsoft.EntityFrameworkCore.Migrations;
|
---|
3 |
|
---|
4 | #nullable disable
|
---|
5 |
|
---|
6 | namespace backend.Migrations
|
---|
7 | {
|
---|
8 | public partial class Authchanges : Migration
|
---|
9 | {
|
---|
10 | protected override void Up(MigrationBuilder migrationBuilder)
|
---|
11 | {
|
---|
12 | migrationBuilder.AddColumn<string>(
|
---|
13 | name: "ConfirmationURL",
|
---|
14 | table: "Users",
|
---|
15 | type: "text",
|
---|
16 | nullable: false,
|
---|
17 | defaultValue: "");
|
---|
18 |
|
---|
19 | migrationBuilder.AddColumn<DateTime>(
|
---|
20 | name: "ConfirmationValidTo",
|
---|
21 | table: "Users",
|
---|
22 | type: "timestamp with time zone",
|
---|
23 | nullable: false,
|
---|
24 | defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
---|
25 |
|
---|
26 | migrationBuilder.AddColumn<bool>(
|
---|
27 | name: "IsConfirmed",
|
---|
28 | table: "Users",
|
---|
29 | type: "boolean",
|
---|
30 | nullable: false,
|
---|
31 | defaultValue: false);
|
---|
32 |
|
---|
33 | migrationBuilder.AddColumn<string>(
|
---|
34 | name: "PasswordResetURL",
|
---|
35 | table: "Users",
|
---|
36 | type: "text",
|
---|
37 | nullable: false,
|
---|
38 | defaultValue: "");
|
---|
39 |
|
---|
40 | migrationBuilder.AddColumn<DateTime>(
|
---|
41 | name: "PasswordResetValidTo",
|
---|
42 | table: "Users",
|
---|
43 | type: "timestamp with time zone",
|
---|
44 | nullable: false,
|
---|
45 | defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
---|
46 | }
|
---|
47 |
|
---|
48 | protected override void Down(MigrationBuilder migrationBuilder)
|
---|
49 | {
|
---|
50 | migrationBuilder.DropColumn(
|
---|
51 | name: "ConfirmationURL",
|
---|
52 | table: "Users");
|
---|
53 |
|
---|
54 | migrationBuilder.DropColumn(
|
---|
55 | name: "ConfirmationValidTo",
|
---|
56 | table: "Users");
|
---|
57 |
|
---|
58 | migrationBuilder.DropColumn(
|
---|
59 | name: "IsConfirmed",
|
---|
60 | table: "Users");
|
---|
61 |
|
---|
62 | migrationBuilder.DropColumn(
|
---|
63 | name: "PasswordResetURL",
|
---|
64 | table: "Users");
|
---|
65 |
|
---|
66 | migrationBuilder.DropColumn(
|
---|
67 | name: "PasswordResetValidTo",
|
---|
68 | table: "Users");
|
---|
69 | }
|
---|
70 | }
|
---|
71 | }
|
---|