diff --git a/server/AyaNova/models/PM.cs b/server/AyaNova/models/PM.cs index 71ef355b..6b3a5d17 100644 --- a/server/AyaNova/models/PM.cs +++ b/server/AyaNova/models/PM.cs @@ -15,7 +15,7 @@ namespace AyaNova.Models public uint Concurrency { get; set; } [Required] - public uint Serial { get; set; } + public long Serial { get; set; } public bool Active { get; set; } public string Notes { get; set; } public string Wiki { get; set; } diff --git a/server/AyaNova/models/Quote.cs b/server/AyaNova/models/Quote.cs index e9260127..449c228b 100644 --- a/server/AyaNova/models/Quote.cs +++ b/server/AyaNova/models/Quote.cs @@ -14,7 +14,7 @@ namespace AyaNova.Models public uint Concurrency { get; set; } [Required] - public uint Serial { get; set; } + public long Serial { get; set; } public bool Active { get; set; } public string Notes { get; set; } public string Wiki { get; set; } diff --git a/server/AyaNova/models/WorkOrder.cs b/server/AyaNova/models/WorkOrder.cs index a4e42bd3..21824af9 100644 --- a/server/AyaNova/models/WorkOrder.cs +++ b/server/AyaNova/models/WorkOrder.cs @@ -18,7 +18,7 @@ namespace AyaNova.Models public uint Concurrency { get; set; } [Required] - public uint Serial { get; set; } + public long Serial { get; set; } public bool Active { get; set; } public string Notes { get; set; } public string Wiki { get; set; } @@ -41,7 +41,7 @@ namespace AyaNova.Models public uint Concurrency { get; set; } [Required] - public uint Serial { get; set; } + public long Serial { get; set; } public bool Active { get; set; } public string Notes { get; set; } public string Wiki { get; set; } diff --git a/server/AyaNova/util/AySchema.cs b/server/AyaNova/util/AySchema.cs index 89b7f239..2deb0395 100644 --- a/server/AyaNova/util/AySchema.cs +++ b/server/AyaNova/util/AySchema.cs @@ -466,7 +466,7 @@ namespace AyaNova.Util await ExecQueryAsync("CREATE INDEX aworkordertemplateitem_tags ON aworkordertemplateitem using GIN(tags)"); //QUOTE - await ExecQueryAsync("CREATE TABLE aquote (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, serial bigint not null, active bool, " + + await ExecQueryAsync("CREATE TABLE aquote (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, serial bigint generated by default as identity not null, active bool, " + "notes text NULL, wiki text null, customfields text NULL, tags varchar(255) ARRAY NULL)"); await ExecQueryAsync("CREATE UNIQUE INDEX aquote_serial_id_idx ON aquote (id, serial);");//is this necessary or fruitful? await ExecQueryAsync("CREATE INDEX aquote_tags ON aquote using GIN(tags)"); @@ -490,7 +490,7 @@ namespace AyaNova.Util await ExecQueryAsync("CREATE INDEX aquotetemplateitem_tags ON aquotetemplateitem using GIN(tags)"); //PM - await ExecQueryAsync("CREATE TABLE apm (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, serial bigint not null, active bool, " + + await ExecQueryAsync("CREATE TABLE apm (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, serial bigint generated by default as identity not null, active bool, " + "notes text NULL, wiki text null, customfields text NULL, tags varchar(255) ARRAY NULL)"); await ExecQueryAsync("CREATE UNIQUE INDEX apm_serial_id_idx ON apm (id, serial);");//is this necessary or fruitful? await ExecQueryAsync("CREATE INDEX apm_tags ON apm using GIN(tags)");