-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
451 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
143 changes: 143 additions & 0 deletions
143
swappy-bot/Migrations/20250128204642_FixPrecisions.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace SwappyBot.Migrations | ||
{ | ||
/// <inheritdoc /> | ||
public partial class FixPrecisions : Migration | ||
{ | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AlterColumn<decimal>( | ||
name: "amount", | ||
table: "swap_state", | ||
type: "numeric(27,18)", | ||
precision: 27, | ||
scale: 18, | ||
nullable: true, | ||
oldClrType: typeof(decimal), | ||
oldType: "numeric", | ||
oldNullable: true); | ||
} | ||
|
||
/// <inheritdoc /> | ||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AlterColumn<decimal>( | ||
name: "amount", | ||
table: "swap_state", | ||
type: "numeric", | ||
nullable: true, | ||
oldClrType: typeof(decimal), | ||
oldType: "numeric(27,18)", | ||
oldPrecision: 27, | ||
oldScale: 18, | ||
oldNullable: true); | ||
} | ||
} | ||
} |
147 changes: 147 additions & 0 deletions
147
swappy-bot/Migrations/20250128204729_FixAllPrecisions.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.