0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

refactor(schemas): fix alteration script

The alteration script of moving sie configs to database should test
if admin tenant has active user instead of default tenant.
This commit is contained in:
Gao Sun 2023-02-24 13:11:40 +08:00
parent ce862504ef
commit dd776eeb15
No known key found for this signature in database
GPG key ID: 13EBE123E4773688

View file

@ -48,7 +48,7 @@ const alteration: AlterationScript = {
const hasActiveUsers = await pool.exists(sql` const hasActiveUsers = await pool.exists(sql`
select id select id
from users from users
where tenant_id = 'default' where tenant_id = 'admin'
limit 1 limit 1
`); `);
await pool.query(sql` await pool.query(sql`