Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:fix add image_file_name column on attendees table #180

Merged
merged 3 commits into from
Jul 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions apps/web/app/types/generated/supabase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export type Database = {
display_name: string | null
email: string
id: string
image_file_name: string
provider: string
receipt_id: string
role: string | null
Expand All @@ -72,6 +73,7 @@ export type Database = {
display_name?: string | null
email: string
id?: string
image_file_name?: string
provider: string
receipt_id: string
role?: string | null
Expand All @@ -85,6 +87,7 @@ export type Database = {
display_name?: string | null
email?: string
id?: string
image_file_name?: string
provider?: string
receipt_id?: string
role?: string | null
Expand Down
2 changes: 2 additions & 0 deletions supabase/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ create table if not exists public.attendees (
updated_at timestamp with time zone default timezone('utc' :: text, now()) not null
);

ALTER TABLE public.attendees ADD COLUMN image_file_name uuid not null unique default uuid_generate_v4();

-- *** Function definitions ***
create
or replace function public.create_admin_user() returns trigger as $ $ begin -- If user_role is 'admin', insert data into admin_users table
Expand Down