refactor: not to drop all tables on app init
This commit is contained in:
@@ -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'));
|
||||||
|
|||||||
Reference in New Issue
Block a user