Skip to content

Commit

Permalink
Use mediumtext for image_cache table
Browse files Browse the repository at this point in the history
  • Loading branch information
geluk committed Aug 30, 2021
1 parent a7e2739 commit 77a125d
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions migrations/20210819204408_image_caching.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,12 @@ import * as Knex from 'knex';

export async function up(knex: Knex): Promise<void> {
await knex.schema.createTable('image_cache', (table) => {
table.string('url_hash', 128)
.primary()
.notNullable();
table.string('original_url', 1024)
.notNullable();
table.string('matrix_url', 255)
.notNullable();
table.timestamp('last_retrieved')
.notNullable();
table.string('content_hash', 128)
.notNullable();
table.json('cache_details')
.notNullable();
table.string('url_hash', 128).primary().notNullable();
table.string('original_url', 1024).notNullable();
table.string('matrix_url', 255).notNullable();
table.timestamp('last_retrieved').notNullable();
table.string('content_hash', 128).notNullable();
table.text('cache_details', 'mediumtext').notNullable();
});
}

Expand Down

0 comments on commit 77a125d

Please sign in to comment.