mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 20:06:33 +00:00
Code style - Use file scoped namespaces
Code style - Ran code cleanup
This commit is contained in:
1 parent
e68e16df4d
commit
f6090dc296
691 files changed
+37301
-38119
No files matched your search
@@ -1,10 +1,9 @@
|
||||
using LiteDB;
|
||||
|
||||
namespace Artemis.Storage.Migrations.Interfaces
|
||||
namespace Artemis.Storage.Migrations.Interfaces;
|
||||
|
||||
public interface IStorageMigration
|
||||
{
|
||||
public interface IStorageMigration
|
||||
{
|
||||
int UserVersion { get; }
|
||||
void Apply(LiteRepository repository);
|
||||
}
|
||||
int UserVersion { get; }
|
||||
void Apply(LiteRepository repository);
|
||||
}
|
||||
@@ -1,22 +1,20 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Artemis.Storage.Entities.Profile;
|
||||
using Artemis.Storage.Migrations.Interfaces;
|
||||
using LiteDB;
|
||||
|
||||
namespace Artemis.Storage.Migrations
|
||||
{
|
||||
public class M0020AvaloniaReset : IStorageMigration
|
||||
{
|
||||
public int UserVersion => 20;
|
||||
namespace Artemis.Storage.Migrations;
|
||||
|
||||
public void Apply(LiteRepository repository)
|
||||
{
|
||||
repository.Database.Commit();
|
||||
|
||||
List<string> collectionNames = repository.Database.GetCollectionNames().ToList();
|
||||
foreach (string collectionName in collectionNames)
|
||||
repository.Database.DropCollection(collectionName);
|
||||
}
|
||||
public class M0020AvaloniaReset : IStorageMigration
|
||||
{
|
||||
public int UserVersion => 20;
|
||||
|
||||
public void Apply(LiteRepository repository)
|
||||
{
|
||||
repository.Database.Commit();
|
||||
|
||||
List<string> collectionNames = repository.Database.GetCollectionNames().ToList();
|
||||
foreach (string collectionName in collectionNames)
|
||||
repository.Database.DropCollection(collectionName);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user