diff --git a/server/models/Subscription.cs b/server/models/Subscription.cs index 98c7dd6..98bc99c 100644 --- a/server/models/Subscription.cs +++ b/server/models/Subscription.cs @@ -23,6 +23,11 @@ namespace Sockeye.Models [NotMapped] public string CustomerViz { get; set; } + + public string RegTo { get; set; } + public string FetchEmail { get; set; }//v7 && v8 uses for notification, v7 uses for fetching manually in UI + public string DbId { get; set; }//v8 uses + public string Notes { get; set; } public List Tags { get; set; } diff --git a/server/util/AySchema.cs b/server/util/AySchema.cs index b6f1190..7b4596a 100644 --- a/server/util/AySchema.cs +++ b/server/util/AySchema.cs @@ -1501,7 +1501,7 @@ $BODY$ LANGUAGE PLPGSQL STABLE"); //SUBSCRIPTION await ExecQueryAsync("CREATE TABLE asubscription (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, subsite TEXT NOT NULL, active BOOL NOT NULL, notes TEXT, " - + "customerid BIGINT REFERENCES acustomer(id) ON DELETE CASCADE, pgroup INTEGER NOT NULL DEFAULT 4, tags VARCHAR(255) ARRAY )"); + + "customerid BIGINT REFERENCES acustomer(id) ON DELETE CASCADE, pgroup INTEGER NOT NULL DEFAULT 4, regto TEXT NOT NULL, fetchemail TEXT, dbid TEXT, tags VARCHAR(255) ARRAY )"); //SUBSCRIPTIONITEM await ExecQueryAsync("CREATE TABLE asubscriptionitem (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, subscriptionid BIGINT NOT NULL REFERENCES asubscription ON DELETE CASCADE, "