Skip to content
Closed
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
2 changes: 2 additions & 0 deletions packages/attachments/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ In addition to `Table` options, the `AttachmentTable` can optionally be configur
| `name` | The name of the table | `attachments` |
| `additionalColumns` | An array of addition `Column` objects added to the default columns in the table | See below for default columns |

If you decided to name the attachments table something other than `attachments` using the `AttachmentTable.name` property then you must also set `attachmentDirectoryName` to the same name when creating an instance of the `AttachmentQueue`

The default columns in `AttachmentTable`:

| Column Name | Type | Description |
Expand Down
2 changes: 1 addition & 1 deletion packages/attachments/src/AbstractAttachmentQueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export abstract class AbstractAttachmentQueue<T extends AttachmentQueueOptions =
}

get table() {
return ATTACHMENT_TABLE;
return this.options.attachmentDirectoryName || ATTACHMENT_TABLE;
}

async init() {
Expand Down