forked from Sarah/Lieb-Website
Added autodelete for users after one year inactivity
This commit is contained in:
parent
c886c6475e
commit
929ca9c0a7
7 changed files with 730 additions and 2 deletions
37
Lieb/Migrations/20221207211355_AddUserCreatedAtLastSignUp.cs
Normal file
37
Lieb/Migrations/20221207211355_AddUserCreatedAtLastSignUp.cs
Normal file
|
@ -0,0 +1,37 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Lieb.Migrations
|
||||
{
|
||||
public partial class AddUserCreatedAtLastSignUp : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "CreatedAt",
|
||||
table: "LiebUser",
|
||||
type: "TEXT",
|
||||
nullable: false,
|
||||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
|
||||
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "LastSignUpAt",
|
||||
table: "LiebUser",
|
||||
type: "TEXT",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "CreatedAt",
|
||||
table: "LiebUser");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "LastSignUpAt",
|
||||
table: "LiebUser");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue