-
Notifications
You must be signed in to change notification settings - Fork 693
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the release notes length limit (#687)
Kudos to @dncnkrs for the original implementation. This allows BaGet to index packages with large release notes, like https://www.nuget.org/packages/chocolatey/0.10.6.1
1 parent
2fdb83f
commit 8474f25
Showing
13 changed files
with
1,095 additions
and
14 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
240 changes: 240 additions & 0 deletions
240
src/BaGet.Database.MySql/Migrations/20210919191554_RemoveReleaseNotesMaxLength.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
src/BaGet.Database.MySql/Migrations/20210919191554_RemoveReleaseNotesMaxLength.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,35 @@ | ||
using System; | ||
using Microsoft.EntityFrameworkCore.Metadata; | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
namespace BaGet.Database.MySql.Migrations | ||
{ | ||
public partial class RemoveReleaseNotesMaxLength : Migration | ||
{ | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AlterColumn<DateTime>( | ||
name: "RowVersion", | ||
table: "Packages", | ||
rowVersion: true, | ||
nullable: true, | ||
oldClrType: typeof(DateTime), | ||
oldType: "timestamp(6)", | ||
oldNullable: true) | ||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.ComputedColumn); | ||
} | ||
|
||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AlterColumn<DateTime>( | ||
name: "RowVersion", | ||
table: "Packages", | ||
type: "timestamp(6)", | ||
nullable: true, | ||
oldClrType: typeof(DateTime), | ||
oldRowVersion: true, | ||
oldNullable: true) | ||
.OldAnnotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.ComputedColumn); | ||
} | ||
} | ||
} |
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
247 changes: 247 additions & 0 deletions
247
...Get.Database.PostgreSql/Migrations/20210919191649_RemoveReleaseNotesMaxLength.Designer.cs
Oops, something went wrong.
31 changes: 31 additions & 0 deletions
31
src/BaGet.Database.PostgreSql/Migrations/20210919191649_RemoveReleaseNotesMaxLength.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,31 @@ | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
namespace BaGet.Database.PostgreSql.Migrations | ||
{ | ||
public partial class RemoveReleaseNotesMaxLength : Migration | ||
{ | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AlterColumn<string>( | ||
name: "ReleaseNotes", | ||
table: "Packages", | ||
nullable: true, | ||
oldClrType: typeof(string), | ||
oldType: "character varying(4000)", | ||
oldMaxLength: 4000, | ||
oldNullable: true); | ||
} | ||
|
||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AlterColumn<string>( | ||
name: "ReleaseNotes", | ||
table: "Packages", | ||
type: "character varying(4000)", | ||
maxLength: 4000, | ||
nullable: true, | ||
oldClrType: typeof(string), | ||
oldNullable: true); | ||
} | ||
} | ||
} |
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
246 changes: 246 additions & 0 deletions
246
...aGet.Database.SqlServer/Migrations/20210919191928_RemoveReleaseNotesMaxLength.Designer.cs
Oops, something went wrong.
31 changes: 31 additions & 0 deletions
31
src/BaGet.Database.SqlServer/Migrations/20210919191928_RemoveReleaseNotesMaxLength.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,31 @@ | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
namespace BaGet.Database.SqlServer.Migrations | ||
{ | ||
public partial class RemoveReleaseNotesMaxLength : Migration | ||
{ | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AlterColumn<string>( | ||
name: "ReleaseNotes", | ||
table: "Packages", | ||
nullable: true, | ||
oldClrType: typeof(string), | ||
oldType: "nvarchar(4000)", | ||
oldMaxLength: 4000, | ||
oldNullable: true); | ||
} | ||
|
||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AlterColumn<string>( | ||
name: "ReleaseNotes", | ||
table: "Packages", | ||
type: "nvarchar(4000)", | ||
maxLength: 4000, | ||
nullable: true, | ||
oldClrType: typeof(string), | ||
oldNullable: true); | ||
} | ||
} | ||
} |
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
239 changes: 239 additions & 0 deletions
239
src/BaGet.Database.Sqlite/Migrations/20210919190849_RemoveReleaseNotesMaxLength.Designer.cs
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
src/BaGet.Database.Sqlite/Migrations/20210919190849_RemoveReleaseNotesMaxLength.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,17 @@ | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
namespace BaGet.Database.Sqlite.Migrations | ||
{ | ||
public partial class RemoveReleaseNotesMaxLength : Migration | ||
{ | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
|
||
} | ||
|
||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
|
||
} | ||
} | ||
} |
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