Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto migrate db #728

Merged
merged 1 commit into from
Jul 24, 2024
Merged

Conversation

area363
Copy link
Member

@area363 area363 commented Jul 23, 2024

info: Microsoft.EntityFrameworkCore.Infrastructure[10403]
      Entity Framework Core 6.0.1 initialized 'NineChroniclesContext' using provider 'Pomelo.EntityFrameworkCore.MySql:6.0.1' with options: CommandTimeout=600000 MigrationsAssembly=NineChronicles.DataProvider.Executable ServerVersion 8.0.30-mysql
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
      Executed DbCommand (11ms) [Parameters=[], CommandType='Text', CommandTimeout='600000']
      SELECT 1 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='data_provider' AND TABLE_NAME='__EFMigrationsHistory';
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
      Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='600000']
      SELECT 1 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='data_provider' AND TABLE_NAME='__EFMigrationsHistory';
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
      Executed DbCommand (6ms) [Parameters=[], CommandType='Text', CommandTimeout='600000']
      SELECT `MigrationId`, `ProductVersion`
      FROM `__EFMigrationsHistory`
      ORDER BY `MigrationId`;
info: Microsoft.EntityFrameworkCore.Migrations[20405]
      No migrations were applied. The database is already up to date.
[21:56:15 DBG] Created a directory /root/.config/planetarium/keystore as it did not exist
[21:56:15 DBG] Secp256K1CryptoBackend initialized.
[21:56:16 DBG] Migrating RocksDB.
[21:56:16 DBG] RocksDB is initialized.
[21:56:17 DBG] Number of chain ids: 1
[21:56:17 DBG] Canonical chain id: d64a9f81-4c9b-4fbc-860a-05e0e2f0562d

Automatically migrates database upon start.

@area363 area363 self-assigned this Jul 23, 2024
@area363 area363 linked an issue Jul 23, 2024 that may be closed by this pull request
@area363 area363 requested review from U-lis and ipdae July 23, 2024 23:32
@area363 area363 merged commit bd348a5 into planetarium:release/170 Jul 24, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Implement db migration internally
1 participant