migrate: hustoj: print encoding

This commit is contained in:
undefined committed 2024-09-21 08:24:29 +08:00
1 parent 1e19aaf82b
commit 4f520f340c
1 file changed
+1
+1
View File
@@ -76,6 +76,7 @@ export async function run({
const query = (q: string) => new Promise<any[]>((res, rej) => {
src.query(q).then((r) => res(r)).catch((e) => rej(e));
});
report({ message: JSON.stringify(await query("show VARIABLES like 'char%';")) });
const target = await DomainModel.get(domainId);
if (!target) throw new NotFoundError(domainId);
report({ message: 'Connected to database' });