Browse Source

fix: use text for file_path

nc-feat/attachment-clean-up
mertmit 4 months ago
parent
commit
b0b6d03831
  1. 2
      packages/nocodb/src/modules/jobs/migration-jobs/nc_job_001_attachment.ts

2
packages/nocodb/src/modules/jobs/migration-jobs/nc_job_001_attachment.ts

@ -62,7 +62,7 @@ export class AttachmentMigrationProcessor {
temp_file_references_table, temp_file_references_table,
(table) => { (table) => {
table.increments('id').primary(); table.increments('id').primary();
table.string('file_path').notNullable(); table.text('file_path').notNullable();
table.string('mimetype'); table.string('mimetype');
table.boolean('referenced').defaultTo(false); table.boolean('referenced').defaultTo(false);
table.boolean('thumbnail_generated').defaultTo(false); table.boolean('thumbnail_generated').defaultTo(false);

Loading…
Cancel
Save