Updates
This commit is contained in:
@@ -113,6 +113,7 @@ export default async function createDbFromSchema({
|
||||
console.log(
|
||||
`Dropping Table ${TABLE_NAME} from ${dbFullName}`
|
||||
);
|
||||
|
||||
await dbHandler({
|
||||
query: `DROP TABLE \`${dbFullName}\`.\`${TABLE_NAME}\``,
|
||||
});
|
||||
|
||||
@@ -102,8 +102,12 @@ export default async function ({
|
||||
}
|
||||
}
|
||||
|
||||
if (newTableSchema.tableNameOld) {
|
||||
}
|
||||
// if (newTableSchema.tableNameOld) {
|
||||
// const renameTable = await dbHandler({
|
||||
// query: `RENAME TABLE \`${targetDatabase}\`.\`${newTableSchema.tableNameOld}\` TO \`${targetDatabase}\`.\`${newTableSchema.tableName}\``,
|
||||
// noErrorLogs: true,
|
||||
// });
|
||||
// }
|
||||
|
||||
return tableId;
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user