Add icon column to document (#7066)
* Add icon column to document * Backfill columns --------- Co-authored-by: Tom Moor <tom.moor@gmail.com>
This commit is contained in:
@@ -80,6 +80,8 @@ export default class ImportJSONTask extends ImportTask {
|
||||
// structure directly in the future.
|
||||
text: serializer.serialize(Node.fromJSON(schema, node.data)),
|
||||
emoji: node.emoji,
|
||||
icon: node.emoji,
|
||||
color: null,
|
||||
createdAt: node.createdAt ? new Date(node.createdAt) : undefined,
|
||||
updatedAt: node.updatedAt ? new Date(node.updatedAt) : undefined,
|
||||
publishedAt: node.publishedAt ? new Date(node.publishedAt) : null,
|
||||
|
||||
@@ -116,6 +116,7 @@ export default class ImportMarkdownZipTask extends ImportTask {
|
||||
id,
|
||||
title,
|
||||
emoji,
|
||||
icon: emoji,
|
||||
text,
|
||||
collectionId,
|
||||
parentDocumentId,
|
||||
|
||||
@@ -131,6 +131,7 @@ export default class ImportNotionTask extends ImportTask {
|
||||
id,
|
||||
title,
|
||||
emoji,
|
||||
icon: emoji,
|
||||
text,
|
||||
collectionId,
|
||||
parentDocumentId,
|
||||
|
||||
@@ -61,6 +61,8 @@ export type StructuredImportData = {
|
||||
urlId?: string;
|
||||
title: string;
|
||||
emoji?: string | null;
|
||||
icon?: string | null;
|
||||
color?: string | null;
|
||||
/**
|
||||
* The document text. To reference an attachment or image use the special
|
||||
* formatting <<attachmentId>>. It will be replaced with a reference to the
|
||||
|
||||
Reference in New Issue
Block a user