mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
feat: comments & paste/comment reactions; renames/refactors
this is a LOT, i should've commited in stages but oh well, from what i can remember:
- paste interactions (reactions)
- comments
- comment interactions (reactions)
- rich text editor
- move all report apis into report controller
- rename size to sizeStored
- rename trueSize to originalSize
- fixed compression on paste compression
- implemented compression threshold
- use longs instead of ints where possible in the entities
- improve record view + remove redundant check for existing view
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace SharpbinV3.Server.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class RenameCommentSizes : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "TrueSize",
|
||||
table: "Comments",
|
||||
newName: "StoredSize");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "Size",
|
||||
table: "Comments",
|
||||
newName: "OriginalSize");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "StoredSize",
|
||||
table: "Comments",
|
||||
newName: "TrueSize");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "OriginalSize",
|
||||
table: "Comments",
|
||||
newName: "Size");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user