mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-04 01:53:52 +01:00
fix for sqlite
This commit is contained in:
parent
93d1ded4c2
commit
1fed7fb5af
1 changed files with 10 additions and 7 deletions
|
@ -10,14 +10,17 @@ namespace BTCPayServer.Migrations
|
||||||
{
|
{
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
{
|
{
|
||||||
migrationBuilder.AlterColumn<string>(
|
if (!migrationBuilder.IsSqlite())
|
||||||
name: "OrderId",
|
{
|
||||||
table: "Invoices",
|
migrationBuilder.AlterColumn<string>(
|
||||||
maxLength: 100,
|
name: "OrderId",
|
||||||
nullable: true,
|
table: "Invoices",
|
||||||
oldClrType: typeof(string));
|
maxLength: 100,
|
||||||
|
nullable: true,
|
||||||
|
oldClrType: typeof(string));
|
||||||
|
}
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
migrationBuilder.CreateIndex(
|
||||||
name: "IX_Invoices_OrderId",
|
name: "IX_Invoices_OrderId",
|
||||||
table: "Invoices",
|
table: "Invoices",
|
||||||
column: "OrderId");
|
column: "OrderId");
|
||||||
|
|
Loading…
Add table
Reference in a new issue