refactor: not to drop all tables on app init

This commit is contained in:
2026-02-17 19:53:17 -03:00
parent eef3dbc2fb
commit 63679b5087

View File

@@ -22,7 +22,6 @@ export const appConfig: ApplicationConfig = {
translateService.addLangs(['en', 'es', 'pt']); translateService.addLangs(['en', 'es', 'pt']);
translateService.setFallbackLang('es'); translateService.setFallbackLang('es');
await sqlite.initializeDatabase('gptdb'); await sqlite.initializeDatabase('gptdb');
await sqlite.dropAllTables();
await sqlite.batchSqlOperations(tables); await sqlite.batchSqlOperations(tables);
await sqlite.executeQuery('PRAGMA foreign_keys = ON;'); await sqlite.executeQuery('PRAGMA foreign_keys = ON;');
document.dispatchEvent(new CustomEvent('ng-boot')); document.dispatchEvent(new CustomEvent('ng-boot'));