From 59e4fc4cecbc227afacc9c8151910e4d00cda603 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 11 Aug 2021 16:34:14 +0530 Subject: [PATCH] fix: Reduce primary string key size ref - https://stackoverflow.com/a/61976932 Signed-off-by: Pranav C #447 --- packages/nocodb/src/lib/noco/migrations/nc_001_init.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nocodb/src/lib/noco/migrations/nc_001_init.ts b/packages/nocodb/src/lib/noco/migrations/nc_001_init.ts index 7f26ca3171..e85acd2889 100644 --- a/packages/nocodb/src/lib/noco/migrations/nc_001_init.ts +++ b/packages/nocodb/src/lib/noco/migrations/nc_001_init.ts @@ -16,7 +16,7 @@ import ses from "../plugins/ses"; const up = async (knex) => { await knex.schema.createTable('nc_projects', table => { - table.string('id').primary(); + table.string('id', 191).primary(); table.string('title'); table.string('status'); table.text('description'); @@ -454,4 +454,4 @@ const down = async (knex) => { export { up, down -} \ No newline at end of file +}