diff options
author | crupest <crupest@outlook.com> | 2022-12-25 14:52:46 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-12-25 14:53:58 +0800 |
commit | 4368b3f0474c43c717f9fc96fbae0b3854bac50f (patch) | |
tree | 0004822a2ea7a987176e28396c7cc74cb61ef692 /docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudServiceCollectionExtensions.cs | |
parent | 96330e77cf13c690232c2c269d244d1ff62ff544 (diff) | |
download | crupest-4368b3f0474c43c717f9fc96fbae0b3854bac50f.tar.gz crupest-4368b3f0474c43c717f9fc96fbae0b3854bac50f.tar.bz2 crupest-4368b3f0474c43c717f9fc96fbae0b3854bac50f.zip |
Add migration.
Diffstat (limited to 'docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudServiceCollectionExtensions.cs')
-rw-r--r-- | docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudServiceCollectionExtensions.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudServiceCollectionExtensions.cs b/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudServiceCollectionExtensions.cs index e9f28bc..a7e5193 100644 --- a/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudServiceCollectionExtensions.cs +++ b/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/CrudServiceCollectionExtensions.cs @@ -1,3 +1,4 @@ +using CrupestApi.Commons.Crud.Migrations; using CrupestApi.Commons.Secrets; using Microsoft.Extensions.DependencyInjection.Extensions; @@ -10,6 +11,7 @@ public static class CrudServiceCollectionExtensions services.TryAddSingleton<IDbConnectionFactory, SqliteConnectionFactory>(); services.TryAddSingleton<IColumnTypeProvider, ColumnTypeProvider>(); services.TryAddSingleton<ITableInfoFactory, TableInfoFactory>(); + services.TryAddSingleton<IDatabaseMigrator, SqliteDatabaseMigrator>(); services.AddSecrets(); return services; } |