01fb74eb38
CI / backend (pull_request) Successful in 1m18s
CI / frontend (pull_request) Successful in 22s
CI / format (pull_request) Successful in 1m8s
CI / db-tests (pull_request) Successful in 1m13s
Security / secrets (pull_request) Successful in 5s
Security / dependencies (pull_request) Successful in 1m7s
RECOMMENDATIONS #8: additive AfterSentAtUtc+AfterId cursor — browse windows fetch via a (SentAtUtc, Id) keyset filter, O(pageSize) at any depth, COUNT skipped (TotalCount=-1). Adds the Id tie-break to browse ordering (fixes latent duplicate/skip on equal timestamps). Verified: InMemory continuation test + a live-Postgres throwaway proving the Guid cursor comparison translates (removed). Also root-causes the recurring pre-commit/CI format failures: dotnet-format on Windows defaulted to CRLF while .gitattributes stores LF — the two fought forever. Adds .editorconfig (end_of_line=lf etc.) so every tool agrees, and normalises the straggler files. This bug bit three separate commits before being diagnosed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace InboxIntel.Infrastructure.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddUserDigestFields : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "DigestEnabled",
|
|
table: "users",
|
|
type: "boolean",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<DateTimeOffset>(
|
|
name: "LastDigestSentUtc",
|
|
table: "users",
|
|
type: "timestamp with time zone",
|
|
nullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "DigestEnabled",
|
|
table: "users");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "LastDigestSentUtc",
|
|
table: "users");
|
|
}
|
|
}
|
|
}
|