Skip to content

Commit

Permalink
Merge pull request #180 from vuejs-jp/fix/attendees-table
Browse files Browse the repository at this point in the history
:fix add image_file_name column on attendees table
  • Loading branch information
KannoStanfoot authored Jul 6, 2024
2 parents d46cfea + 36560a9 commit 6de0d56
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
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

0 comments on commit 6de0d56

Please sign in to comment.