change schema

This commit is contained in:
monoid 2021-01-03 01:36:34 +09:00
parent 0bd0d3e11b
commit 70c14e0263

View File

@ -12,7 +12,7 @@ export async function up(knex:Knex) {
b.string("content_type",16).notNullable(); b.string("content_type",16).notNullable();
b.string("basepath",256).notNullable().comment("directory path for resource"); b.string("basepath",256).notNullable().comment("directory path for resource");
b.string("filename",256).notNullable().comment("filename"); b.string("filename",256).notNullable().comment("filename");
b.string("thumbnail").nullable(); b.string("content_hash").nullable();
b.json("additional").nullable(); b.json("additional").nullable();
b.timestamps(); b.timestamps();
b.index("content_type","content_type_index"); b.index("content_type","content_type_index");