All blocks

Content

Drive files

The part of the drive module that needs attachments, versions, trash and share-links: file uploads and revisions, storage policies, the bin, starred and recent items, folder share links and the purge event. Installed with drive.

DocsModes:managedcustom
terminal
npx better-supabase sql add drive-files
better-supabase.config.ts
import { defineConfig } from "better-supabase/config";

export default defineConfig({
  sql: {
    modules: {
      // Required by drive-files; sql add installs them too.
      "updated-at": {},
      tenant: {},
      access: {},
      attachments: {},
      // Modes: "managed", "custom". The default is "managed".
      "drive-files": { mode: "managed" },
    },
  },
});