diff --git a/api/src/data/migrations/003.create-departments.ts b/api/src/data/migrations/003.create-departments.ts index e298d67..f38a73d 100644 --- a/api/src/data/migrations/003.create-departments.ts +++ b/api/src/data/migrations/003.create-departments.ts @@ -4,7 +4,7 @@ export async function up(knex: knex.Knex) { await knex.schema.createTable("departments", function(table) { table.string("code", 8).primary().notNullable(); table.string("name", 256).notNullable(); - table.string("description", 4096).nullable(); + table.string("description", 4000).nullable(); }); }; diff --git a/api/src/data/migrations/004.create-locations.ts b/api/src/data/migrations/004.create-locations.ts index 4ac0d00..a9a5796 100644 --- a/api/src/data/migrations/004.create-locations.ts +++ b/api/src/data/migrations/004.create-locations.ts @@ -4,7 +4,7 @@ export async function up(knex: knex.Knex) { await knex.schema.createTable("locations", function(table) { table.string("code", 8).primary().notNullable(); table.string("name", 256).notNullable(); - table.string("description", 4096).nullable(); + table.string("description", 4000).nullable(); }); }; diff --git a/api/src/data/migrations/005.create-scopes.ts b/api/src/data/migrations/005.create-scopes.ts index 9c1e5c5..cc1b1d2 100644 --- a/api/src/data/migrations/005.create-scopes.ts +++ b/api/src/data/migrations/005.create-scopes.ts @@ -4,7 +4,7 @@ export async function up(knex: knex.Knex) { await knex.schema.createTable("scopes", function(table) { table.string("code", 8).primary().notNullable(); table.string("name", 256).notNullable(); - table.string("description", 4096).nullable(); + table.string("description", 4000).nullable(); }); }; diff --git a/api/src/data/migrations/006.create-sensitivities.ts b/api/src/data/migrations/006.create-sensitivities.ts index 3b6fe0f..58bb6e3 100644 --- a/api/src/data/migrations/006.create-sensitivities.ts +++ b/api/src/data/migrations/006.create-sensitivities.ts @@ -4,7 +4,7 @@ export async function up(knex: knex.Knex) { await knex.schema.createTable("sensitivities", function(table) { table.string("code", 8).primary().notNullable(); table.string("name", 256).notNullable(); - table.string("description", 4096).nullable(); + table.string("description", 4000).nullable(); }); }; diff --git a/api/src/data/migrations/007.create-role-types.ts b/api/src/data/migrations/007.create-role-types.ts index 4428d65..d65c58a 100644 --- a/api/src/data/migrations/007.create-role-types.ts +++ b/api/src/data/migrations/007.create-role-types.ts @@ -5,7 +5,7 @@ export async function up(knex: knex.Knex) { table.increments("id").primary().notNullable(); table.string("name", 256).notNullable(); table.integer("permissions").notNullable(); - table.string("description", 4096).notNullable(); + table.string("description", 4000).notNullable(); }); }; diff --git a/api/src/data/migrations/009.create-action-statuses.ts b/api/src/data/migrations/009.create-action-statuses.ts index 3d19e32..f51d3e1 100644 --- a/api/src/data/migrations/009.create-action-statuses.ts +++ b/api/src/data/migrations/009.create-action-statuses.ts @@ -4,7 +4,7 @@ export async function up(knex: knex.Knex) { await knex.schema.createTable("action_statuses", function(table) { table.string("code", 8).primary().notNullable(); table.string("name", 256).notNullable(); - table.string("description", 4096).nullable(); + table.string("description", 4000).nullable(); }); }; diff --git a/api/src/data/migrations/010.create-hazard-statuses.ts b/api/src/data/migrations/010.create-hazard-statuses.ts index 1e63c94..c4569a7 100644 --- a/api/src/data/migrations/010.create-hazard-statuses.ts +++ b/api/src/data/migrations/010.create-hazard-statuses.ts @@ -4,7 +4,7 @@ export async function up(knex: knex.Knex) { await knex.schema.createTable("hazard_statuses", function(table) { table.string("code", 8).primary().notNullable(); table.string("name", 256).notNullable(); - table.string("description", 4096).nullable(); + table.string("description", 4000).nullable(); }); }; diff --git a/api/src/data/migrations/011.create-incident-statuses.ts b/api/src/data/migrations/011.create-incident-statuses.ts index 7b8b974..87fd55d 100644 --- a/api/src/data/migrations/011.create-incident-statuses.ts +++ b/api/src/data/migrations/011.create-incident-statuses.ts @@ -4,7 +4,7 @@ export async function up(knex: knex.Knex) { await knex.schema.createTable("incident_statuses", function(table) { table.string("code", 8).primary().notNullable(); table.string("name", 256).notNullable(); - table.string("description", 4096).nullable(); + table.string("description", 4000).nullable(); }); }; diff --git a/api/src/data/migrations/012.create-action-types.ts b/api/src/data/migrations/012.create-action-types.ts index 433f627..23f5626 100644 --- a/api/src/data/migrations/012.create-action-types.ts +++ b/api/src/data/migrations/012.create-action-types.ts @@ -4,7 +4,7 @@ export async function up(knex: knex.Knex) { await knex.schema.createTable("action_types", function(table) { table.string("code", 8).primary().notNullable(); table.string("name", 256).notNullable(); - table.string("description", 4096).nullable(); + table.string("description", 4000).nullable(); }); }; diff --git a/api/src/data/migrations/013.create-hazard-types.ts b/api/src/data/migrations/013.create-hazard-types.ts index f26af7d..c5b21f6 100644 --- a/api/src/data/migrations/013.create-hazard-types.ts +++ b/api/src/data/migrations/013.create-hazard-types.ts @@ -6,7 +6,7 @@ export async function up(knex: knex.Knex) { table.integer("create_user_id").notNullable(); table.integer("searchable_user_id").nullable(); table.string("name", 256).notNullable(); - table.string("description", 4096).nullable(); + table.string("description", 4000).nullable(); table.boolean("is_searchable").notNullable().defaultTo(true); table.datetime("created_at").nullable().defaultTo(knex.fn.now()); table.date("searchable_on").nullable(); diff --git a/api/src/data/migrations/014.create-incident-hazard-types.ts b/api/src/data/migrations/014.create-incident-hazard-types.ts index 3df4867..10dc7dd 100644 --- a/api/src/data/migrations/014.create-incident-hazard-types.ts +++ b/api/src/data/migrations/014.create-incident-hazard-types.ts @@ -4,7 +4,7 @@ export async function up(knex: knex.Knex) { await knex.schema.createTable("incident_hazard_types", function(table) { table.string("code", 8).primary().notNullable(); table.string("name", 256).notNullable(); - table.string("description", 4096).nullable(); + table.string("description", 4000).nullable(); }); }; diff --git a/api/src/data/migrations/015.create-incident-types.ts b/api/src/data/migrations/015.create-incident-types.ts index 829ba85..d3194d9 100644 --- a/api/src/data/migrations/015.create-incident-types.ts +++ b/api/src/data/migrations/015.create-incident-types.ts @@ -6,7 +6,7 @@ export async function up(knex: knex.Knex) { table.integer("create_user_id").nullable(); table.integer("searchable_user_id").nullable(); table.string("name", 256).notNullable(); - table.string("description", 4096).nullable(); + table.string("description", 4000).nullable(); table.boolean("is_searchable").notNullable().defaultTo(true); table.datetime("created_at").nullable().defaultTo(knex.fn.now()); table.date("searchable_on").nullable(); diff --git a/api/src/data/migrations/016.create-incidents.ts b/api/src/data/migrations/016.create-incidents.ts index dd48ff8..70ace95 100644 --- a/api/src/data/migrations/016.create-incidents.ts +++ b/api/src/data/migrations/016.create-incidents.ts @@ -11,7 +11,7 @@ export async function up(knex: knex.Knex) { table.string("reporting_person_email", 250).nullable(); table.string("supervisor_email", 250).nullable(); table.integer("proxy_user_id").nullable(); - table.string("description", 4096).notNullable(); + table.string("description", 4000).notNullable(); table.datetime("created_at").notNullable().defaultTo(knex.fn.now()); table.foreign("sensitivity_code").references("sensitivities.code"); diff --git a/api/src/data/migrations/017.create-hazards.ts b/api/src/data/migrations/017.create-hazards.ts index 22e59c7..9cc2a42 100644 --- a/api/src/data/migrations/017.create-hazards.ts +++ b/api/src/data/migrations/017.create-hazards.ts @@ -9,7 +9,7 @@ export async function up(knex: knex.Knex) { table.string("scope_code", 8).nullable(); table.string("status_code", 8).nullable(); table.string("sensitivity_code", 8).nullable(); - table.string("description", 4096).nullable(); + table.string("description", 4000).nullable(); table.string("location_detail", 1000).nullable(); table.datetime("created_at").nullable().defaultTo(knex.fn.now()); table.integer("reopen_count").notNullable().defaultTo(0); diff --git a/api/src/data/migrations/019.create-actions.ts b/api/src/data/migrations/019.create-actions.ts index eadd578..45001a4 100644 --- a/api/src/data/migrations/019.create-actions.ts +++ b/api/src/data/migrations/019.create-actions.ts @@ -11,7 +11,7 @@ export async function up(knex: knex.Knex) { table.datetime("created_at").notNullable().defaultTo(knex.fn.now()); table.datetime("modified_at").nullable().defaultTo(knex.fn.now()); table.datetime("due_date").nullable(); - table.string("description", 4096).notNullable(); + table.string("description", 4000).notNullable(); table.string("action_type_code", 8).notNullable(); table.string("sensitivity_code", 8).nullable(); table.string("status_code", 8).nullable(); diff --git a/api/src/data/migrations/020.create-role-logs.ts b/api/src/data/migrations/020.create-role-logs.ts index 3631ac1..627aeac 100644 --- a/api/src/data/migrations/020.create-role-logs.ts +++ b/api/src/data/migrations/020.create-role-logs.ts @@ -21,7 +21,7 @@ export async function up(knex: knex.Knex) { table.integer("changer_user_id").nullable(); table.integer("changer_role_id").nullable(); table.datetime("changed_date").notNullable(); // defaultTo now? - table.string("log_comment", 4096).notNullable(); + table.string("log_comment", 4000).notNullable(); table.string("user_action", 8).notNullable(); table.foreign("user_roles_id").references("user_roles.id"); diff --git a/api/src/data/migrations/021.create-hazard-logs.ts b/api/src/data/migrations/021.create-hazard-logs.ts index 8a736f7..0b2b0ae 100644 --- a/api/src/data/migrations/021.create-hazard-logs.ts +++ b/api/src/data/migrations/021.create-hazard-logs.ts @@ -5,7 +5,7 @@ export async function up(knex: knex.Knex) { table.increments("id").primary().notNullable(); table.integer("hazard_id").notNullable(); table.integer("old_hazard_type_id").notNullable(); - table.string("old_description", 4096).nullable(); + table.string("old_description", 4000).nullable(); table.string("old_location_code", 8).nullable(); table.string("old_location_detail", 8).nullable(); table.string("old_department_code", 8).nullable(); @@ -14,7 +14,7 @@ export async function up(knex: knex.Knex) { table.string("old_status_code", 8).nullable(); table.integer("old_reopen_count").notNullable(); table.integer("new_hazard_type_id").notNullable(); - table.string("new_description", 4096).nullable(); + table.string("new_description", 4000).nullable(); table.string("new_location_code", 8).nullable(); table.string("new_location_detail", 8).nullable(); table.string("new_department_code", 8).nullable(); @@ -25,7 +25,7 @@ export async function up(knex: knex.Knex) { table.integer("changer_user_id").nullable(); table.integer("changer_role_id").nullable(); table.datetime("changed_date").notNullable(); - table.string("log_comment", 4096).notNullable(); + table.string("log_comment", 4000).notNullable(); table.string("user_action", 8).notNullable(); table.foreign("hazard_id").references("hazards.id"); diff --git a/api/src/data/migrations/022.create-action-logs.ts b/api/src/data/migrations/022.create-action-logs.ts index ed6d94d..69ef679 100644 --- a/api/src/data/migrations/022.create-action-logs.ts +++ b/api/src/data/migrations/022.create-action-logs.ts @@ -8,21 +8,21 @@ export async function up(knex: knex.Knex) { table.integer("old_actor_user_id").nullable(); table.integer("old_actor_role_id").nullable(); table.datetime("old_due_date").notNullable(); - table.string("old_description", 4096).notNullable(); + table.string("old_description", 4000).notNullable(); table.string("old_action_type_code", 8).notNullable(); table.string("old_sensitivity_code", 8).nullable(); table.string("old_status_code", 8).nullable(); table.integer("new_actor_user_id").nullable(); table.integer("new_actor_role_id").nullable(); table.datetime("new_due_date").notNullable(); - table.string("new_description", 4096).notNullable(); + table.string("new_description", 4000).notNullable(); table.string("new_action_type_code", 8).notNullable(); table.string("new_sensitivity_code", 8).nullable(); table.string("new_status_code", 8).nullable(); table.integer("changer_user_id").nullable(); table.integer("changer_role_id").nullable(); table.datetime("changed_date").notNullable(); - table.string("log_comment", 4096).notNullable(); + table.string("log_comment", 4000).notNullable(); table.string("user_action", 8).notNullable(); table.foreign("action_id").references("actions.id"); diff --git a/api/src/data/migrations/023.create-incident-logs.ts b/api/src/data/migrations/023.create-incident-logs.ts index 17455e3..e5e369f 100644 --- a/api/src/data/migrations/023.create-incident-logs.ts +++ b/api/src/data/migrations/023.create-incident-logs.ts @@ -4,13 +4,13 @@ export async function up(knex: knex.Knex) { await knex.schema.createTable("incident_logs", function(table) { table.increments("id").primary().notNullable(); table.integer("incident_id").notNullable(); - table.string("old_description", 4096).notNullable(); + table.string("old_description", 4000).notNullable(); table.string("old_sensitivity_code", 256).nullable(); table.string("old_supervisor", 8).nullable(); table.datetime("old_created_date").notNullable(); table.string("old_status_code", 8).nullable(); table.integer("old_incident_type_id").nullable(); - table.string("new_description", 4096).notNullable(); + table.string("new_description", 4000).notNullable(); table.string("new_supervisor", 8).nullable(); table.string("new_sensitivity_code", 8).nullable(); table.datetime("new_created_date").notNullable(); @@ -19,7 +19,7 @@ export async function up(knex: knex.Knex) { table.integer("changer_user_id").nullable(); table.integer("changer_role_id").nullable(); table.datetime("changed_date").notNullable(); - table.string("log_comment", 4096).notNullable(); + table.string("log_comment", 4000).notNullable(); table.string("user_action", 8).notNullable(); table.foreign("incident_id").references("incidents.id"); diff --git a/api/src/data/migrations/024.create-incident-hazard-logs.ts b/api/src/data/migrations/024.create-incident-hazard-logs.ts index 3871dba..8b3d3f6 100644 --- a/api/src/data/migrations/024.create-incident-hazard-logs.ts +++ b/api/src/data/migrations/024.create-incident-hazard-logs.ts @@ -9,7 +9,7 @@ export async function up(knex: knex.Knex) { table.integer("changer_user_id").nullable(); table.integer("changer_role_id").nullable(); table.datetime("changed_date").notNullable(); - table.string("log_comment", 4096).notNullable(); + table.string("log_comment", 4000).notNullable(); table.string("user_action", 8).notNullable(); table.foreign("incident_hazard_id").references("incident_hazards.id");