fix(staging): hoist ensurePublicSelectTable in hasura bootstrap
This commit is contained in:
@@ -236,7 +236,7 @@ async function main() {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const ensurePublicSelectTable = async (table, columns) => {
|
async function ensurePublicSelectTable(table, columns) {
|
||||||
await metadataIgnore({ type: 'pg_untrack_table', args: { source, table } });
|
await metadataIgnore({ type: 'pg_untrack_table', args: { source, table } });
|
||||||
await metadata({ type: 'pg_track_table', args: { source, table } });
|
await metadata({ type: 'pg_track_table', args: { source, table } });
|
||||||
|
|
||||||
@@ -257,7 +257,7 @@ async function main() {
|
|||||||
// Computed/archived tables are written by workers using admin secret; keep ingestor off by default.
|
// Computed/archived tables are written by workers using admin secret; keep ingestor off by default.
|
||||||
await metadataIgnore({ type: 'pg_drop_insert_permission', args: { source, table, role: 'ingestor' } });
|
await metadataIgnore({ type: 'pg_drop_insert_permission', args: { source, table, role: 'ingestor' } });
|
||||||
await metadataIgnore({ type: 'pg_drop_update_permission', args: { source, table, role: 'ingestor' } });
|
await metadataIgnore({ type: 'pg_drop_update_permission', args: { source, table, role: 'ingestor' } });
|
||||||
};
|
}
|
||||||
|
|
||||||
await ensureDlobTable(dlobL2LatestTable, [
|
await ensureDlobTable(dlobL2LatestTable, [
|
||||||
'market_name',
|
'market_name',
|
||||||
|
|||||||
Reference in New Issue
Block a user