deploy preflight: ai schema now has 5 tables (setup tab)
All checks were successful
Deploy production / deploy (push) Successful in 1m13s
All checks were successful
Deploy production / deploy (push) Successful in 1m13s
This commit is contained in:
@@ -188,8 +188,9 @@ try {
|
|||||||
if (Number(stats.tables) !== STATS_TABLES || Number(stats.app_rw) !== STATS_TABLES)
|
if (Number(stats.tables) !== STATS_TABLES || Number(stats.app_rw) !== STATS_TABLES)
|
||||||
throw new Error(`stats schema tables/grants are wrong: ${JSON.stringify(stats)}`);
|
throw new Error(`stats schema tables/grants are wrong: ${JSON.stringify(stats)}`);
|
||||||
// Private-by-default AI tracker (news public in the app; bots and usage owner-only): app role
|
// Private-by-default AI tracker (news public in the app; bots and usage owner-only): app role
|
||||||
// read/write, personal_ro none. 3 = news_items, bot_status, usage_entries.
|
// read/write, personal_ro none. 5 = news_items, bot_status, usage_entries,
|
||||||
const AI_TABLES = 3;
|
// provider_setup_providers, provider_setup_entries (setup tab, owner-only).
|
||||||
|
const AI_TABLES = 5;
|
||||||
const [ai] = await client`
|
const [ai] = await client`
|
||||||
select
|
select
|
||||||
count(*) filter (where has_table_privilege(c.oid, 'select, insert, update, delete')) as app_rw,
|
count(*) filter (where has_table_privilege(c.oid, 'select, insert, update, delete')) as app_rw,
|
||||||
|
|||||||
Reference in New Issue
Block a user