Skip to content

Commit 551137d

Browse files
committed
chore: use underscore
1 parent 72bd1b8 commit 551137d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/lib/sql/table_privileges.sql

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ select
2424
case
2525
when c.relkind = 'r' then 'table'
2626
when c.relkind = 'v' then 'view'
27-
when c.relkind = 'm' then 'materialized view'
28-
when c.relkind = 'f' then 'foreign table'
29-
when c.relkind = 'p' then 'partitioned table'
27+
when c.relkind = 'm' then 'materialized_view'
28+
when c.relkind = 'f' then 'foreign_table'
29+
when c.relkind = 'p' then 'partitioned_table'
3030
end as kind,
3131
coalesce(
3232
jsonb_agg(

src/lib/types.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,9 @@ export const postgresTablePrivilegesSchema = Type.Object({
412412
kind: Type.Union([
413413
Type.Literal('table'),
414414
Type.Literal('view'),
415-
Type.Literal('materialized view'),
416-
Type.Literal('foreign table'),
417-
Type.Literal('partitioned table'),
415+
Type.Literal('materialized_view'),
416+
Type.Literal('foreign_table'),
417+
Type.Literal('partitioned_table'),
418418
]),
419419
privileges: Type.Array(
420420
Type.Object({

0 commit comments

Comments
 (0)