Skip to content

Commit

Permalink
Revert "Format"
Browse files Browse the repository at this point in the history
This reverts commit cf23410.
  • Loading branch information
LiamMorrow committed Jun 30, 2024
1 parent cf23410 commit ef8b74c
Showing 1 changed file with 10 additions and 26 deletions.
36 changes: 10 additions & 26 deletions LiftLog.Api/Migrations/UserData/20240630015536_SharedItems.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,12 @@ protected override void Up(MigrationBuilder migrationBuilder)
name: "shared_items",
columns: table => new
{
id = table
.Column<int>(type: "integer", nullable: false)
.Annotation(
"Npgsql:ValueGenerationStrategy",
NpgsqlValueGenerationStrategy.IdentityByDefaultColumn
),
id = table.Column<int>(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
user_id = table.Column<Guid>(type: "uuid", nullable: false),
timestamp = table.Column<DateTimeOffset>(
type: "timestamp with time zone",
nullable: false
),
expiry = table.Column<DateTimeOffset>(
type: "timestamp with time zone",
nullable: false
),
encrypted_payload = table.Column<byte[]>(
type: "bytea",
maxLength: 5120,
nullable: false
),
timestamp = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false),
expiry = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false),
encrypted_payload = table.Column<byte[]>(type: "bytea", maxLength: 5120, nullable: false),
encryption_iv = table.Column<byte[]>(type: "bytea", nullable: false)
},
constraints: table =>
Expand All @@ -46,22 +32,20 @@ protected override void Up(MigrationBuilder migrationBuilder)
column: x => x.user_id,
principalTable: "users",
principalColumn: "id",
onDelete: ReferentialAction.Cascade
);
}
);
onDelete: ReferentialAction.Cascade);
});

migrationBuilder.CreateIndex(
name: "ix_shared_items_user_id",
table: "shared_items",
column: "user_id"
);
column: "user_id");
}

/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(name: "shared_items");
migrationBuilder.DropTable(
name: "shared_items");
}
}
}

0 comments on commit ef8b74c

Please sign in to comment.