-
Notifications
You must be signed in to change notification settings - Fork 16
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
1 parent
f98654f
commit d5b0473
Showing
4 changed files
with
131 additions
and
36 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
38 changes: 38 additions & 0 deletions
38
RetakesAllocatorCore/Migrations/20240116025022_BigIntTime.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
56 changes: 56 additions & 0 deletions
56
RetakesAllocatorCore/Migrations/20240116025022_BigIntTime.cs
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,56 @@ | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace RetakesAllocator.Migrations | ||
{ | ||
/// <inheritdoc /> | ||
public partial class BigIntTime : Migration | ||
{ | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AlterColumn<string>( | ||
name: "WeaponPreferences", | ||
table: "UserSettings", | ||
type: "text", | ||
maxLength: 10000, | ||
nullable: true, | ||
oldClrType: typeof(string), | ||
oldType: "TEXT", | ||
oldMaxLength: 10000, | ||
oldNullable: true); | ||
|
||
migrationBuilder.AlterColumn<ulong>( | ||
name: "UserId", | ||
table: "UserSettings", | ||
type: "bigint", | ||
nullable: false, | ||
oldClrType: typeof(int), | ||
oldType: "INTEGER"); | ||
} | ||
|
||
/// <inheritdoc /> | ||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AlterColumn<string>( | ||
name: "WeaponPreferences", | ||
table: "UserSettings", | ||
type: "TEXT", | ||
maxLength: 10000, | ||
nullable: true, | ||
oldClrType: typeof(string), | ||
oldType: "text", | ||
oldMaxLength: 10000, | ||
oldNullable: true); | ||
|
||
migrationBuilder.AlterColumn<int>( | ||
name: "UserId", | ||
table: "UserSettings", | ||
type: "INTEGER", | ||
nullable: false, | ||
oldClrType: typeof(ulong), | ||
oldType: "bigint"); | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,35 +1,35 @@ | ||
// <auto-generated /> | ||
using Microsoft.EntityFrameworkCore; | ||
using Microsoft.EntityFrameworkCore.Infrastructure; | ||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; | ||
using RetakesAllocatorCore.Db; | ||
|
||
#nullable disable | ||
|
||
namespace RetakesAllocator.Migrations | ||
{ | ||
[DbContext(typeof(Db))] | ||
partial class DbModelSnapshot : ModelSnapshot | ||
{ | ||
protected override void BuildModel(ModelBuilder modelBuilder) | ||
{ | ||
#pragma warning disable 612, 618 | ||
modelBuilder.HasAnnotation("ProductVersion", "7.0.14"); | ||
|
||
modelBuilder.Entity("RetakesAllocator.db.UserSetting", b => | ||
{ | ||
b.Property<int>("UserId") | ||
.HasColumnType("INTEGER"); | ||
|
||
b.Property<string>("WeaponPreferences") | ||
.HasMaxLength(10000) | ||
.HasColumnType("TEXT"); | ||
|
||
b.HasKey("UserId"); | ||
|
||
b.ToTable("UserSettings", (string)null); | ||
}); | ||
#pragma warning restore 612, 618 | ||
} | ||
} | ||
} | ||
// <auto-generated /> | ||
using Microsoft.EntityFrameworkCore; | ||
using Microsoft.EntityFrameworkCore.Infrastructure; | ||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; | ||
using RetakesAllocatorCore.Db; | ||
|
||
#nullable disable | ||
|
||
namespace RetakesAllocator.Migrations | ||
{ | ||
[DbContext(typeof(Db))] | ||
partial class DbModelSnapshot : ModelSnapshot | ||
{ | ||
protected override void BuildModel(ModelBuilder modelBuilder) | ||
{ | ||
#pragma warning disable 612, 618 | ||
modelBuilder.HasAnnotation("ProductVersion", "7.0.14"); | ||
|
||
modelBuilder.Entity("RetakesAllocatorCore.Db.UserSetting", b => | ||
{ | ||
b.Property<ulong>("UserId") | ||
.HasColumnType("bigint"); | ||
|
||
b.Property<string>("WeaponPreferences") | ||
.HasMaxLength(10000) | ||
.HasColumnType("text"); | ||
|
||
b.HasKey("UserId"); | ||
|
||
b.ToTable("UserSettings"); | ||
}); | ||
#pragma warning restore 612, 618 | ||
} | ||
} | ||
} |