3 Commits

Author SHA1 Message Date
cdd22c6632 Fix migration 2025-09-25 17:37:50 -04:00
b68f794e7d Try prerelease with a different environment 2025-09-25 16:11:29 -04:00
4291d301cc Try to fix prerelease tagging 2025-09-25 15:54:45 -04:00
2 changed files with 11 additions and 7 deletions

View File

@@ -15,10 +15,17 @@ public class FeedCenterEntities
SchemaVersion = 2,
MigrationCallback = (migration, oldSchemaVersion) =>
{
if (oldSchemaVersion == 1)
migration.NewRealm.Add(Account.CreateDefault());
Account localAccount;
var localAccount = migration.NewRealm.All<Account>().First(a => a.Type == AccountType.Local);
if (oldSchemaVersion == 1)
{
localAccount = Account.CreateDefault();
migration.NewRealm.Add(localAccount);
}
else
{
localAccount = migration.NewRealm.All<Account>().First(a => a.Type == AccountType.Local);
}
var newVersionCategories = migration.NewRealm.All<Category>();

View File

@@ -26,7 +26,6 @@ for:
deploy:
- provider: Environment
name: GitHub
prerelease: false
- branches:
only:
@@ -34,6 +33,4 @@ for:
version: 1.2.0.{build}
deploy:
- provider: Environment
name: GitHub
prerelease: true
tag: $(version)-prerelease
name: GitHub-Prerelease