mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-01-14 01:25:38 -05:00
Compare commits
3 Commits
1.2.0.69
...
1.2.0.75-p
| Author | SHA1 | Date | |
|---|---|---|---|
| cdd22c6632 | |||
| b68f794e7d | |||
| 4291d301cc |
@@ -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>();
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user