mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-02-02 17:24:21 -05:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cdd22c6632 | |||
| b68f794e7d | |||
| 4291d301cc |
@@ -15,10 +15,17 @@ public class FeedCenterEntities
|
|||||||
SchemaVersion = 2,
|
SchemaVersion = 2,
|
||||||
MigrationCallback = (migration, oldSchemaVersion) =>
|
MigrationCallback = (migration, oldSchemaVersion) =>
|
||||||
{
|
{
|
||||||
if (oldSchemaVersion == 1)
|
Account localAccount;
|
||||||
migration.NewRealm.Add(Account.CreateDefault());
|
|
||||||
|
|
||||||
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>();
|
var newVersionCategories = migration.NewRealm.All<Category>();
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ for:
|
|||||||
deploy:
|
deploy:
|
||||||
- provider: Environment
|
- provider: Environment
|
||||||
name: GitHub
|
name: GitHub
|
||||||
prerelease: false
|
|
||||||
|
|
||||||
- branches:
|
- branches:
|
||||||
only:
|
only:
|
||||||
@@ -34,6 +33,4 @@ for:
|
|||||||
version: 1.2.0.{build}
|
version: 1.2.0.{build}
|
||||||
deploy:
|
deploy:
|
||||||
- provider: Environment
|
- provider: Environment
|
||||||
name: GitHub
|
name: GitHub-Prerelease
|
||||||
prerelease: true
|
|
||||||
tag: $(version)-prerelease
|
|
||||||
|
|||||||
Reference in New Issue
Block a user