mirror of
https://github.com/Hackdex-App/hackdex-website.git
synced 2026-04-16 18:16:56 -05:00
Add columns to patches db table
This commit is contained in:
parent
59de8137cc
commit
bc398fa236
|
|
@ -263,27 +263,48 @@ export type Database = {
|
|||
}
|
||||
patches: {
|
||||
Row: {
|
||||
archived: boolean
|
||||
archived_at: string | null
|
||||
breaks_saves: boolean
|
||||
bucket: string
|
||||
changelog: string | null
|
||||
created_at: string
|
||||
filename: string
|
||||
id: number
|
||||
parent_hack: string | null
|
||||
published: boolean
|
||||
published_at: string | null
|
||||
updated_at: string
|
||||
version: string
|
||||
}
|
||||
Insert: {
|
||||
archived?: boolean
|
||||
archived_at?: string | null
|
||||
breaks_saves?: boolean
|
||||
bucket: string
|
||||
changelog?: string | null
|
||||
created_at?: string
|
||||
filename: string
|
||||
id?: number
|
||||
parent_hack?: string | null
|
||||
published?: boolean
|
||||
published_at?: string | null
|
||||
updated_at?: string
|
||||
version: string
|
||||
}
|
||||
Update: {
|
||||
archived?: boolean
|
||||
archived_at?: string | null
|
||||
breaks_saves?: boolean
|
||||
bucket?: string
|
||||
changelog?: string | null
|
||||
created_at?: string
|
||||
filename?: string
|
||||
id?: number
|
||||
parent_hack?: string | null
|
||||
published?: boolean
|
||||
published_at?: string | null
|
||||
updated_at?: string
|
||||
version?: string
|
||||
}
|
||||
Relationships: [
|
||||
|
|
|
|||
20
supabase/migrations/20251210085605_add_patch_columns.sql
Normal file
20
supabase/migrations/20251210085605_add_patch_columns.sql
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
alter table if exists public.patches
|
||||
add column if not exists published boolean not null default true;
|
||||
|
||||
alter table if exists public.patches
|
||||
add column if not exists published_at timestamp with time zone default now();
|
||||
|
||||
alter table if exists public.patches
|
||||
add column if not exists updated_at timestamp with time zone not null default now();
|
||||
|
||||
alter table if exists public.patches
|
||||
add column if not exists changelog text;
|
||||
|
||||
alter table if exists public.patches
|
||||
add column if not exists breaks_saves boolean not null default false;
|
||||
|
||||
alter table if exists public.patches
|
||||
add column if not exists archived boolean not null default false;
|
||||
|
||||
alter table if exists public.patches
|
||||
add column if not exists archived_at timestamp with time zone;
|
||||
Loading…
Reference in New Issue
Block a user