Skip to content

Commit

Permalink
Hotfixing analytics view (#50)
Browse files Browse the repository at this point in the history
* Hotfix

* Add proper permissions
  • Loading branch information
tifrel authored Jan 19, 2023
1 parent e59fdf7 commit 754c4bb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/redeploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ grant select on all tables in schema mb_views to hasura;
grant trigger on public.nft_offers to hasura;
grant select on all sequences in schema mb_views to hasura;
grant usage on schema mb_views to hasura;
grant select on all tables in schema analytics_test to hasura;
grant select on all tables in schema analytics_tmp to hasura;
grant select on all sequences in schema analytics_tmp to hasura;
grant usage on schema analytics_tmp to hasura;
EOF

read -r -d '' POSTGRES_GRANTS <<EOF
Expand Down
7 changes: 7 additions & 0 deletions src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ table! {
accepted_at -> Nullable<Timestamp>,
accepted_offer_id -> Nullable<Int8>,
metadata_id -> Nullable<Text>,
new_metadata_id -> Nullable<Text>,
invalidated_at -> Nullable<Timestamp>,
}
}
Expand All @@ -119,6 +120,10 @@ table! {
extra -> Nullable<Text>,
minter -> Nullable<Text>,
base_uri -> Nullable<Text>,
old_id -> Nullable<Text>,
old_reference -> Nullable<Text>,
old_media -> Nullable<Text>,
new_media -> Nullable<Text>,
content_flag -> Nullable<Text>,
}
}
Expand Down Expand Up @@ -169,6 +174,8 @@ table! {
royalties_percent -> Nullable<Int4>,
royalties -> Nullable<Jsonb>,
splits -> Nullable<Jsonb>,
old_metadata_id -> Nullable<Text>,
old_reference -> Nullable<Text>,
}
}

Expand Down

0 comments on commit 754c4bb

Please sign in to comment.