mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2024-11-01 22:20:30 +08:00
fix #119
This commit is contained in:
parent
7c9d76cbed
commit
94ea80aeee
@ -127,9 +127,10 @@ export class CloudDBService extends BaseService {
|
||||
await this.coolCloudDb.createTable(table.content, true);
|
||||
}
|
||||
// 所有云函数表
|
||||
const { database } = this.coolCloudDb.coolDataSource.options;
|
||||
const allTables = (
|
||||
await this.coolCloudDb.coolDataSource.query(
|
||||
"SELECT table_name from information_schema.columns where table_name like 'func_%' group by table_name"
|
||||
`SELECT table_name from information_schema.columns where table_schema like '${database}' and table_name like 'func_%' group by table_name`
|
||||
)
|
||||
).map(e => {
|
||||
return e.TABLE_NAME || e.table_name;
|
||||
|
Loading…
Reference in New Issue
Block a user