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:
parent
ce862504ef
commit
dd776eeb15
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ const alteration: AlterationScript = {
|
|||
const hasActiveUsers = await pool.exists(sql`
|
||||
select id
|
||||
from users
|
||||
where tenant_id = 'default'
|
||||
where tenant_id = 'admin'
|
||||
limit 1
|
||||
`);
|
||||
await pool.query(sql`
|
||||
|
|
Loading…
Reference in a new issue