Skip to content

Commit f271d9f

Browse files
committed
remove automatic updates
1 parent 16620e6 commit f271d9f

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

templates/cli/lib/commands/push.js.twig

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1867,39 +1867,6 @@ const pushTable = async ({ returnOnZero, attempts } = { returnOnZero: false }) =
18671867
return;
18681868
}
18691869

1870-
const databases = Array.from(new Set(tables.map(table => table['databaseId'])));
1871-
1872-
// Parallel tablesDB actions
1873-
await Promise.all(databases.map(async (databaseId) => {
1874-
const localDatabase = localConfig.getTablesDB(databaseId);
1875-
1876-
try {
1877-
const database = await tablesDBGet({
1878-
databaseId: databaseId,
1879-
parseOutput: false,
1880-
});
1881-
1882-
if (database.name !== (localDatabase.name ?? databaseId)) {
1883-
await tablesDBUpdate({
1884-
databaseId: databaseId,
1885-
name: localDatabase.name ?? databaseId,
1886-
parseOutput: false
1887-
})
1888-
1889-
success(`Updated ${localDatabase.name} ( ${databaseId} ) name`);
1890-
}
1891-
} catch (err) {
1892-
log(`Database ${databaseId} not found. Creating it now ...`);
1893-
1894-
await tablesDBCreate({
1895-
databaseId: databaseId,
1896-
name: localDatabase.name ?? databaseId,
1897-
parseOutput: false,
1898-
});
1899-
}
1900-
}));
1901-
1902-
19031870
if (!(await approveChanges(tables, tablesDBGetTable, KeysTable, 'tableId', 'tables', ['columns', 'indexes'], 'databaseId', 'databaseId'))) {
19041871
return;
19051872
}

0 commit comments

Comments
 (0)