~/M/twenty ❯❯❯ LOG_LEVELS=error,warn,debug,log APP_VERSION=1.16.3 yarn database:migrate:prod main ✭ query: SELECT * FROM current_schema() query: CREATE EXTENSION IF NOT EXISTS "uuid-ossp" query: SELECT version(); query: SELECT * FROM "information_schema"."tables" WHERE "table_schema" = 'core' AND "table_name" = '_typeorm_migrations' query: SELECT * FROM "core"."_typeorm_migrations" "_typeorm_migrations" ORDER BY "id" DESC 246 migrations are already loaded in the database. 98 migrations were found in the source code. RemoteRemoteTables1767812158000 is the last executed migration. It was executed on Wed Jan 07 2026 12:55:58 GMT-0600 (Central Standard Time). 20 migrations are new migrations must be executed. query: START TRANSACTION query: SAVEPOINT sp_make_field_metadata_universal_identifier_and_application_id_not_nullable query: ALTER TABLE "core"."fieldMetadata" DROP CONSTRAINT "FK_05453a954e458e3d91f2ff5043f" query: DROP INDEX "core"."IDX_f1c88fdfc3ad8910b17fc1fd73" query: ALTER TABLE "core"."fieldMetadata" ALTER COLUMN "universalIdentifier" SET NOT NULL query failed: ALTER TABLE "core"."fieldMetadata" ALTER COLUMN "universalIdentifier" SET NOT NULL error: error: column "universalIdentifier" of relation "fieldMetadata" contains null values query: ROLLBACK TO SAVEPOINT sp_make_field_metadata_universal_identifier_and_application_id_not_nullable query: RELEASE SAVEPOINT sp_make_field_metadata_universal_identifier_and_application_id_not_nullable Swallowing MakeFieldMetadataUniversalIdentifierAndApplicationIdNotNullable1767277454048 error QueryFailedError: column "universalIdentifier" of relation "fieldMetadata" contains null values at PostgresQueryRunner.query (/Users/fcaballero/MORA/twenty/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:219:19) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async makeFieldMetadataUniversalIdentifierAndApplicationIdNotNullableQueries (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/utils/1767277454048-makeFieldMetadataUniversalIdentifierAndApplicationIdNotNullable.util.js:14:5) at async MakeFieldMetadataUniversalIdentifierAndApplicationIdNotNullable1767277454048.up (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/common/1767277454048-makeFieldMetadataUniversalIdentifierAndApplicationIdNotNullable.js:17:13) at async MigrationExecutor.executePendingMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/migration/MigrationExecutor.js:225:17) at async DataSource.runMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/data-source/DataSource.js:265:35) at async Object.handler (/Users/fcaballero/MORA/twenty/node_modules/typeorm/commands/MigrationRunCommand.js:68:13) { query: 'ALTER TABLE "core"."fieldMetadata" ALTER COLUMN "universalIdentifier" SET NOT NULL', parameters: undefined, driverError: error: column "universalIdentifier" of relation "fieldMetadata" contains null values at /Users/fcaballero/MORA/twenty/node_modules/pg/lib/client.js:526:17 at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async PostgresQueryRunner.query (/Users/fcaballero/MORA/twenty/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:184:25) at async makeFieldMetadataUniversalIdentifierAndApplicationIdNotNullableQueries (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/utils/1767277454048-makeFieldMetadataUniversalIdentifierAndApplicationIdNotNullable.util.js:14:5) at async MakeFieldMetadataUniversalIdentifierAndApplicationIdNotNullable1767277454048.up (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/common/1767277454048-makeFieldMetadataUniversalIdentifierAndApplicationIdNotNullable.js:17:13) at async MigrationExecutor.executePendingMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/migration/MigrationExecutor.js:225:17) at async DataSource.runMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/data-source/DataSource.js:265:35) at async Object.handler (/Users/fcaballero/MORA/twenty/node_modules/typeorm/commands/MigrationRunCommand.js:68:13) { length: 182, severity: 'ERROR', code: '23502', detail: undefined, hint: undefined, position: undefined, internalPosition: undefined, internalQuery: undefined, where: undefined, schema: 'core', table: 'fieldMetadata', column: 'universalIdentifier', dataType: undefined, constraint: undefined, file: 'tablecmds.c', line: '6116', routine: 'ATRewriteTable' }, length: 182, severity: 'ERROR', code: '23502', detail: undefined, hint: undefined, position: undefined, internalPosition: undefined, internalQuery: undefined, where: undefined, schema: 'core', table: 'fieldMetadata', column: 'universalIdentifier', dataType: undefined, constraint: undefined, file: 'tablecmds.c', line: '6116', routine: 'ATRewriteTable' } query: INSERT INTO "core"."_typeorm_migrations"("timestamp", "name") VALUES ($1, $2) -- PARAMETERS: [1767277454048,"MakeFieldMetadataUniversalIdentifierAndApplicationIdNotNullable1767277454048"] Migration MakeFieldMetadataUniversalIdentifierAndApplicationIdNotNullable1767277454048 has been executed successfully. query: DROP TABLE "core"."workspaceMigration" query: INSERT INTO "core"."_typeorm_migrations"("timestamp", "name") VALUES ($1, $2) -- PARAMETERS: [1767876112877,"RemoveWorkspaceMigration1767876112877"] Migration RemoveWorkspaceMigration1767876112877 has been executed successfully. query: DROP INDEX "core"."IDX_RLPPG_WORKSPACE_ID_ROLE_ID" query: ALTER TABLE "core"."rowLevelPermissionPredicateGroup" ADD "objectMetadataId" uuid NOT NULL query: CREATE INDEX "IDX_RLPPG_WORKSPACE_ID_ROLE_ID_OBJECT_METADATA_ID" ON "core"."rowLevelPermissionPredicateGroup" ("workspaceId", "roleId", "objectMetadataId") query: ALTER TABLE "core"."rowLevelPermissionPredicateGroup" ADD CONSTRAINT "FK_ca604fd5ee245bca9f32ed67b9b" FOREIGN KEY ("objectMetadataId") REFERENCES "core"."objectMetadata"("id") ON DELETE CASCADE ON UPDATE NO ACTION query: INSERT INTO "core"."_typeorm_migrations"("timestamp", "name") VALUES ($1, $2) -- PARAMETERS: [1767998263185,"AddObjectMetadataIdToRowLevelPermissionPredicateGroup1767998263185"] Migration AddObjectMetadataIdToRowLevelPermissionPredicateGroup1767998263185 has been executed successfully. query: SAVEPOINT sp_make_object_metadata_universal_identifier_and_application_id_not_nullable query: ALTER TABLE "core"."objectMetadata" DROP CONSTRAINT "FK_71a7af5a5c916f0b96f358f25f7" query: DROP INDEX "core"."IDX_3a00d35710f4227ded320fd96d" query: ALTER TABLE "core"."objectMetadata" ALTER COLUMN "universalIdentifier" SET NOT NULL query failed: ALTER TABLE "core"."objectMetadata" ALTER COLUMN "universalIdentifier" SET NOT NULL error: error: column "universalIdentifier" of relation "objectMetadata" contains null values query: ROLLBACK TO SAVEPOINT sp_make_object_metadata_universal_identifier_and_application_id_not_nullable query: RELEASE SAVEPOINT sp_make_object_metadata_universal_identifier_and_application_id_not_nullable Swallowing MakeObjectMetadataUniversalIdentifierAndApplicationIdNotNullable1768212224801 error QueryFailedError: column "universalIdentifier" of relation "objectMetadata" contains null values at PostgresQueryRunner.query (/Users/fcaballero/MORA/twenty/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:219:19) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async makeObjectMetadataUniversalIdentifierAndApplicationIdNotNullableQueries (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/utils/1768212224801-makeObjectMetadataUniversalIdentifierAndApplicationIdNotNullable.util.js:14:5) at async MakeObjectMetadataUniversalIdentifierAndApplicationIdNotNullable1768212224801.up (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/common/1768212224801-makeObjectMetadataUniversalIdentifierAndApplicationIdNotNullable.js:17:13) at async MigrationExecutor.executePendingMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/migration/MigrationExecutor.js:225:17) at async DataSource.runMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/data-source/DataSource.js:265:35) at async Object.handler (/Users/fcaballero/MORA/twenty/node_modules/typeorm/commands/MigrationRunCommand.js:68:13) { query: 'ALTER TABLE "core"."objectMetadata" ALTER COLUMN "universalIdentifier" SET NOT NULL', parameters: undefined, driverError: error: column "universalIdentifier" of relation "objectMetadata" contains null values at /Users/fcaballero/MORA/twenty/node_modules/pg/lib/client.js:526:17 at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async PostgresQueryRunner.query (/Users/fcaballero/MORA/twenty/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:184:25) at async makeObjectMetadataUniversalIdentifierAndApplicationIdNotNullableQueries (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/utils/1768212224801-makeObjectMetadataUniversalIdentifierAndApplicationIdNotNullable.util.js:14:5) at async MakeObjectMetadataUniversalIdentifierAndApplicationIdNotNullable1768212224801.up (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/common/1768212224801-makeObjectMetadataUniversalIdentifierAndApplicationIdNotNullable.js:17:13) at async MigrationExecutor.executePendingMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/migration/MigrationExecutor.js:225:17) at async DataSource.runMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/data-source/DataSource.js:265:35) at async Object.handler (/Users/fcaballero/MORA/twenty/node_modules/typeorm/commands/MigrationRunCommand.js:68:13) { length: 184, severity: 'ERROR', code: '23502', detail: undefined, hint: undefined, position: undefined, internalPosition: undefined, internalQuery: undefined, where: undefined, schema: 'core', table: 'objectMetadata', column: 'universalIdentifier', dataType: undefined, constraint: undefined, file: 'tablecmds.c', line: '6116', routine: 'ATRewriteTable' }, length: 184, severity: 'ERROR', code: '23502', detail: undefined, hint: undefined, position: undefined, internalPosition: undefined, internalQuery: undefined, where: undefined, schema: 'core', table: 'objectMetadata', column: 'universalIdentifier', dataType: undefined, constraint: undefined, file: 'tablecmds.c', line: '6116', routine: 'ATRewriteTable' } query: INSERT INTO "core"."_typeorm_migrations"("timestamp", "name") VALUES ($1, $2) -- PARAMETERS: [1768212224801,"MakeObjectMetadataUniversalIdentifierAndApplicationIdNotNullable1768212224801"] Migration MakeObjectMetadataUniversalIdentifierAndApplicationIdNotNullable1768212224801 has been executed successfully. query: SAVEPOINT sp_make_view_universal_identifier_and_application_id_not_nullable query: ALTER TABLE "core"."view" DROP CONSTRAINT "FK_348e25d584c7e51417f4e097941" query: DROP INDEX "core"."IDX_552aa6908966e980099b3e5ebf" query: ALTER TABLE "core"."view" ALTER COLUMN "universalIdentifier" SET NOT NULL query failed: ALTER TABLE "core"."view" ALTER COLUMN "universalIdentifier" SET NOT NULL error: error: column "universalIdentifier" of relation "view" contains null values query: ROLLBACK TO SAVEPOINT sp_make_view_universal_identifier_and_application_id_not_nullable query: RELEASE SAVEPOINT sp_make_view_universal_identifier_and_application_id_not_nullable Swallowing MakeViewUniversalIdentifierAndApplicationIdNotNullable1768213174271 error QueryFailedError: column "universalIdentifier" of relation "view" contains null values at PostgresQueryRunner.query (/Users/fcaballero/MORA/twenty/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:219:19) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async makeViewUniversalIdentifierAndApplicationIdNotNullableQueries (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/utils/1768213174271-makeViewUniversalIdentifierAndApplicationIdNotNullable.util.js:14:5) at async MakeViewUniversalIdentifierAndApplicationIdNotNullable1768213174271.up (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/common/1768213174271-makeViewUniversalIdentifierAndApplicationIdNotNullable.js:17:13) at async MigrationExecutor.executePendingMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/migration/MigrationExecutor.js:225:17) at async DataSource.runMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/data-source/DataSource.js:265:35) at async Object.handler (/Users/fcaballero/MORA/twenty/node_modules/typeorm/commands/MigrationRunCommand.js:68:13) { query: 'ALTER TABLE "core"."view" ALTER COLUMN "universalIdentifier" SET NOT NULL', parameters: undefined, driverError: error: column "universalIdentifier" of relation "view" contains null values at /Users/fcaballero/MORA/twenty/node_modules/pg/lib/client.js:526:17 at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async PostgresQueryRunner.query (/Users/fcaballero/MORA/twenty/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:184:25) at async makeViewUniversalIdentifierAndApplicationIdNotNullableQueries (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/utils/1768213174271-makeViewUniversalIdentifierAndApplicationIdNotNullable.util.js:14:5) at async MakeViewUniversalIdentifierAndApplicationIdNotNullable1768213174271.up (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/common/1768213174271-makeViewUniversalIdentifierAndApplicationIdNotNullable.js:17:13) at async MigrationExecutor.executePendingMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/migration/MigrationExecutor.js:225:17) at async DataSource.runMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/data-source/DataSource.js:265:35) at async Object.handler (/Users/fcaballero/MORA/twenty/node_modules/typeorm/commands/MigrationRunCommand.js:68:13) { length: 164, severity: 'ERROR', code: '23502', detail: undefined, hint: undefined, position: undefined, internalPosition: undefined, internalQuery: undefined, where: undefined, schema: 'core', table: 'view', column: 'universalIdentifier', dataType: undefined, constraint: undefined, file: 'tablecmds.c', line: '6116', routine: 'ATRewriteTable' }, length: 164, severity: 'ERROR', code: '23502', detail: undefined, hint: undefined, position: undefined, internalPosition: undefined, internalQuery: undefined, where: undefined, schema: 'core', table: 'view', column: 'universalIdentifier', dataType: undefined, constraint: undefined, file: 'tablecmds.c', line: '6116', routine: 'ATRewriteTable' } query: INSERT INTO "core"."_typeorm_migrations"("timestamp", "name") VALUES ($1, $2) -- PARAMETERS: [1768213174271,"MakeViewUniversalIdentifierAndApplicationIdNotNullable1768213174271"] Migration MakeViewUniversalIdentifierAndApplicationIdNotNullable1768213174271 has been executed successfully. query: SAVEPOINT sp_make_view_field_universal_identifier_and_application_id_not_nullable query: ALTER TABLE "core"."viewField" DROP CONSTRAINT "FK_b560ea62a958deff0c6059caa45" query: DROP INDEX "core"."IDX_b86af4ea24cae518dee8eae996" query: ALTER TABLE "core"."viewField" ALTER COLUMN "universalIdentifier" SET NOT NULL query failed: ALTER TABLE "core"."viewField" ALTER COLUMN "universalIdentifier" SET NOT NULL error: error: column "universalIdentifier" of relation "viewField" contains null values query: ROLLBACK TO SAVEPOINT sp_make_view_field_universal_identifier_and_application_id_not_nullable query: RELEASE SAVEPOINT sp_make_view_field_universal_identifier_and_application_id_not_nullable Swallowing MakeViewFieldUniversalIdentifierAndApplicationIdNotNullable1768213174272 error QueryFailedError: column "universalIdentifier" of relation "viewField" contains null values at PostgresQueryRunner.query (/Users/fcaballero/MORA/twenty/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:219:19) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async makeViewFieldUniversalIdentifierAndApplicationIdNotNullableQueries (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/utils/1768213174272-makeViewFieldUniversalIdentifierAndApplicationIdNotNullable.util.js:14:5) at async MakeViewFieldUniversalIdentifierAndApplicationIdNotNullable1768213174272.up (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/common/1768213174272-makeViewFieldUniversalIdentifierAndApplicationIdNotNullable.js:17:13) at async MigrationExecutor.executePendingMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/migration/MigrationExecutor.js:225:17) at async DataSource.runMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/data-source/DataSource.js:265:35) at async Object.handler (/Users/fcaballero/MORA/twenty/node_modules/typeorm/commands/MigrationRunCommand.js:68:13) { query: 'ALTER TABLE "core"."viewField" ALTER COLUMN "universalIdentifier" SET NOT NULL', parameters: undefined, driverError: error: column "universalIdentifier" of relation "viewField" contains null values at /Users/fcaballero/MORA/twenty/node_modules/pg/lib/client.js:526:17 at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async PostgresQueryRunner.query (/Users/fcaballero/MORA/twenty/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:184:25) at async makeViewFieldUniversalIdentifierAndApplicationIdNotNullableQueries (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/utils/1768213174272-makeViewFieldUniversalIdentifierAndApplicationIdNotNullable.util.js:14:5) at async MakeViewFieldUniversalIdentifierAndApplicationIdNotNullable1768213174272.up (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/common/1768213174272-makeViewFieldUniversalIdentifierAndApplicationIdNotNullable.js:17:13) at async MigrationExecutor.executePendingMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/migration/MigrationExecutor.js:225:17) at async DataSource.runMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/data-source/DataSource.js:265:35) at async Object.handler (/Users/fcaballero/MORA/twenty/node_modules/typeorm/commands/MigrationRunCommand.js:68:13) { length: 174, severity: 'ERROR', code: '23502', detail: undefined, hint: undefined, position: undefined, internalPosition: undefined, internalQuery: undefined, where: undefined, schema: 'core', table: 'viewField', column: 'universalIdentifier', dataType: undefined, constraint: undefined, file: 'tablecmds.c', line: '6116', routine: 'ATRewriteTable' }, length: 174, severity: 'ERROR', code: '23502', detail: undefined, hint: undefined, position: undefined, internalPosition: undefined, internalQuery: undefined, where: undefined, schema: 'core', table: 'viewField', column: 'universalIdentifier', dataType: undefined, constraint: undefined, file: 'tablecmds.c', line: '6116', routine: 'ATRewriteTable' } query: INSERT INTO "core"."_typeorm_migrations"("timestamp", "name") VALUES ($1, $2) -- PARAMETERS: [1768213174272,"MakeViewFieldUniversalIdentifierAndApplicationIdNotNullable1768213174272"] Migration MakeViewFieldUniversalIdentifierAndApplicationIdNotNullable1768213174272 has been executed successfully. query: SAVEPOINT sp_make_view_filter_universal_identifier_and_application_id_not_nullable query: ALTER TABLE "core"."viewFilter" DROP CONSTRAINT "FK_d5651cf33fa56a47cd262a3fb2c" query: DROP INDEX "core"."IDX_cd4588bfc9ad73345b3953a039" query: ALTER TABLE "core"."viewFilter" ALTER COLUMN "universalIdentifier" SET NOT NULL query failed: ALTER TABLE "core"."viewFilter" ALTER COLUMN "universalIdentifier" SET NOT NULL error: error: column "universalIdentifier" of relation "viewFilter" contains null values query: ROLLBACK TO SAVEPOINT sp_make_view_filter_universal_identifier_and_application_id_not_nullable query: RELEASE SAVEPOINT sp_make_view_filter_universal_identifier_and_application_id_not_nullable Swallowing MakeViewFilterUniversalIdentifierAndApplicationIdNotNullable1768213174273 error QueryFailedError: column "universalIdentifier" of relation "viewFilter" contains null values at PostgresQueryRunner.query (/Users/fcaballero/MORA/twenty/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:219:19) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async makeViewFilterUniversalIdentifierAndApplicationIdNotNullableQueries (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/utils/1768213174273-makeViewFilterUniversalIdentifierAndApplicationIdNotNullable.util.js:14:5) at async MakeViewFilterUniversalIdentifierAndApplicationIdNotNullable1768213174273.up (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/common/1768213174273-makeViewFilterUniversalIdentifierAndApplicationIdNotNullable.js:17:13) at async MigrationExecutor.executePendingMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/migration/MigrationExecutor.js:225:17) at async DataSource.runMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/data-source/DataSource.js:265:35) at async Object.handler (/Users/fcaballero/MORA/twenty/node_modules/typeorm/commands/MigrationRunCommand.js:68:13) { query: 'ALTER TABLE "core"."viewFilter" ALTER COLUMN "universalIdentifier" SET NOT NULL', parameters: undefined, driverError: error: column "universalIdentifier" of relation "viewFilter" contains null values at /Users/fcaballero/MORA/twenty/node_modules/pg/lib/client.js:526:17 at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async PostgresQueryRunner.query (/Users/fcaballero/MORA/twenty/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:184:25) at async makeViewFilterUniversalIdentifierAndApplicationIdNotNullableQueries (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/utils/1768213174273-makeViewFilterUniversalIdentifierAndApplicationIdNotNullable.util.js:14:5) at async MakeViewFilterUniversalIdentifierAndApplicationIdNotNullable1768213174273.up (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/common/1768213174273-makeViewFilterUniversalIdentifierAndApplicationIdNotNullable.js:17:13) at async MigrationExecutor.executePendingMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/migration/MigrationExecutor.js:225:17) at async DataSource.runMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/data-source/DataSource.js:265:35) at async Object.handler (/Users/fcaballero/MORA/twenty/node_modules/typeorm/commands/MigrationRunCommand.js:68:13) { length: 176, severity: 'ERROR', code: '23502', detail: undefined, hint: undefined, position: undefined, internalPosition: undefined, internalQuery: undefined, where: undefined, schema: 'core', table: 'viewFilter', column: 'universalIdentifier', dataType: undefined, constraint: undefined, file: 'tablecmds.c', line: '6116', routine: 'ATRewriteTable' }, length: 176, severity: 'ERROR', code: '23502', detail: undefined, hint: undefined, position: undefined, internalPosition: undefined, internalQuery: undefined, where: undefined, schema: 'core', table: 'viewFilter', column: 'universalIdentifier', dataType: undefined, constraint: undefined, file: 'tablecmds.c', line: '6116', routine: 'ATRewriteTable' } query: INSERT INTO "core"."_typeorm_migrations"("timestamp", "name") VALUES ($1, $2) -- PARAMETERS: [1768213174273,"MakeViewFilterUniversalIdentifierAndApplicationIdNotNullable1768213174273"] Migration MakeViewFilterUniversalIdentifierAndApplicationIdNotNullable1768213174273 has been executed successfully. query: SAVEPOINT sp_make_view_group_universal_identifier_and_application_id_not_nullable query: ALTER TABLE "core"."viewGroup" DROP CONSTRAINT "FK_5aff384532c78fa8a42ceeae282" query: DROP INDEX "core"."IDX_a44e3b03f0eca32d0504d5ef73" query: ALTER TABLE "core"."viewGroup" ALTER COLUMN "universalIdentifier" SET NOT NULL query failed: ALTER TABLE "core"."viewGroup" ALTER COLUMN "universalIdentifier" SET NOT NULL error: error: column "universalIdentifier" of relation "viewGroup" contains null values query: ROLLBACK TO SAVEPOINT sp_make_view_group_universal_identifier_and_application_id_not_nullable query: RELEASE SAVEPOINT sp_make_view_group_universal_identifier_and_application_id_not_nullable Swallowing MakeViewGroupUniversalIdentifierAndApplicationIdNotNullable1768213174274 error QueryFailedError: column "universalIdentifier" of relation "viewGroup" contains null values at PostgresQueryRunner.query (/Users/fcaballero/MORA/twenty/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:219:19) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async makeViewGroupUniversalIdentifierAndApplicationIdNotNullableQueries (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/utils/1768213174274-makeViewGroupUniversalIdentifierAndApplicationIdNotNullable.util.js:14:5) at async MakeViewGroupUniversalIdentifierAndApplicationIdNotNullable1768213174274.up (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/common/1768213174274-makeViewGroupUniversalIdentifierAndApplicationIdNotNullable.js:17:13) at async MigrationExecutor.executePendingMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/migration/MigrationExecutor.js:225:17) at async DataSource.runMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/data-source/DataSource.js:265:35) at async Object.handler (/Users/fcaballero/MORA/twenty/node_modules/typeorm/commands/MigrationRunCommand.js:68:13) { query: 'ALTER TABLE "core"."viewGroup" ALTER COLUMN "universalIdentifier" SET NOT NULL', parameters: undefined, driverError: error: column "universalIdentifier" of relation "viewGroup" contains null values at /Users/fcaballero/MORA/twenty/node_modules/pg/lib/client.js:526:17 at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async PostgresQueryRunner.query (/Users/fcaballero/MORA/twenty/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:184:25) at async makeViewGroupUniversalIdentifierAndApplicationIdNotNullableQueries (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/utils/1768213174274-makeViewGroupUniversalIdentifierAndApplicationIdNotNullable.util.js:14:5) at async MakeViewGroupUniversalIdentifierAndApplicationIdNotNullable1768213174274.up (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/common/1768213174274-makeViewGroupUniversalIdentifierAndApplicationIdNotNullable.js:17:13) at async MigrationExecutor.executePendingMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/migration/MigrationExecutor.js:225:17) at async DataSource.runMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/data-source/DataSource.js:265:35) at async Object.handler (/Users/fcaballero/MORA/twenty/node_modules/typeorm/commands/MigrationRunCommand.js:68:13) { length: 174, severity: 'ERROR', code: '23502', detail: undefined, hint: undefined, position: undefined, internalPosition: undefined, internalQuery: undefined, where: undefined, schema: 'core', table: 'viewGroup', column: 'universalIdentifier', dataType: undefined, constraint: undefined, file: 'tablecmds.c', line: '6116', routine: 'ATRewriteTable' }, length: 174, severity: 'ERROR', code: '23502', detail: undefined, hint: undefined, position: undefined, internalPosition: undefined, internalQuery: undefined, where: undefined, schema: 'core', table: 'viewGroup', column: 'universalIdentifier', dataType: undefined, constraint: undefined, file: 'tablecmds.c', line: '6116', routine: 'ATRewriteTable' } query: INSERT INTO "core"."_typeorm_migrations"("timestamp", "name") VALUES ($1, $2) -- PARAMETERS: [1768213174274,"MakeViewGroupUniversalIdentifierAndApplicationIdNotNullable1768213174274"] Migration MakeViewGroupUniversalIdentifierAndApplicationIdNotNullable1768213174274 has been executed successfully. query: SAVEPOINT sp_make_agent_universal_identifier_and_application_id_not_nullable query: ALTER TABLE "core"."agent" DROP CONSTRAINT "FK_259c48f99f625708723414adb5d" query: DROP INDEX "core"."IDX_0cc4d03dbcc269e77ba4d297fb" query: ALTER TABLE "core"."agent" ALTER COLUMN "universalIdentifier" SET NOT NULL query failed: ALTER TABLE "core"."agent" ALTER COLUMN "universalIdentifier" SET NOT NULL error: error: column "universalIdentifier" of relation "agent" contains null values query: ROLLBACK TO SAVEPOINT sp_make_agent_universal_identifier_and_application_id_not_nullable query: RELEASE SAVEPOINT sp_make_agent_universal_identifier_and_application_id_not_nullable Swallowing MakeAgentUniversalIdentifierAndApplicationIdNotNullable1768213174274 error QueryFailedError: column "universalIdentifier" of relation "agent" contains null values at PostgresQueryRunner.query (/Users/fcaballero/MORA/twenty/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:219:19) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async makeAgentUniversalIdentifierAndApplicationIdNotNullableQueries (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/utils/1768213174274-makeAgentUniversalIdentifierAndApplicationIdNotNullable.util.js:14:5) at async MakeAgentUniversalIdentifierAndApplicationIdNotNullable1768213174274.up (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/common/1768213174274-makeAgentUniversalIdentifierAndApplicationIdNotNullable.js:17:13) at async MigrationExecutor.executePendingMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/migration/MigrationExecutor.js:225:17) at async DataSource.runMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/data-source/DataSource.js:265:35) at async Object.handler (/Users/fcaballero/MORA/twenty/node_modules/typeorm/commands/MigrationRunCommand.js:68:13) { query: 'ALTER TABLE "core"."agent" ALTER COLUMN "universalIdentifier" SET NOT NULL', parameters: undefined, driverError: error: column "universalIdentifier" of relation "agent" contains null values at /Users/fcaballero/MORA/twenty/node_modules/pg/lib/client.js:526:17 at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async PostgresQueryRunner.query (/Users/fcaballero/MORA/twenty/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:184:25) at async makeAgentUniversalIdentifierAndApplicationIdNotNullableQueries (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/utils/1768213174274-makeAgentUniversalIdentifierAndApplicationIdNotNullable.util.js:14:5) at async MakeAgentUniversalIdentifierAndApplicationIdNotNullable1768213174274.up (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/common/1768213174274-makeAgentUniversalIdentifierAndApplicationIdNotNullable.js:17:13) at async MigrationExecutor.executePendingMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/migration/MigrationExecutor.js:225:17) at async DataSource.runMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/data-source/DataSource.js:265:35) at async Object.handler (/Users/fcaballero/MORA/twenty/node_modules/typeorm/commands/MigrationRunCommand.js:68:13) { length: 166, severity: 'ERROR', code: '23502', detail: undefined, hint: undefined, position: undefined, internalPosition: undefined, internalQuery: undefined, where: undefined, schema: 'core', table: 'agent', column: 'universalIdentifier', dataType: undefined, constraint: undefined, file: 'tablecmds.c', line: '6116', routine: 'ATRewriteTable' }, length: 166, severity: 'ERROR', code: '23502', detail: undefined, hint: undefined, position: undefined, internalPosition: undefined, internalQuery: undefined, where: undefined, schema: 'core', table: 'agent', column: 'universalIdentifier', dataType: undefined, constraint: undefined, file: 'tablecmds.c', line: '6116', routine: 'ATRewriteTable' } query: INSERT INTO "core"."_typeorm_migrations"("timestamp", "name") VALUES ($1, $2) -- PARAMETERS: [1768213174274,"MakeAgentUniversalIdentifierAndApplicationIdNotNullable1768213174274"] Migration MakeAgentUniversalIdentifierAndApplicationIdNotNullable1768213174274 has been executed successfully. query: SAVEPOINT sp_make_role_universal_identifier_and_application_id_not_nullable query: ALTER TABLE "core"."role" DROP CONSTRAINT "FK_7f3b96f15aaf5a27549288d264b" query: DROP INDEX "core"."IDX_3b7ff27925c0959777682c1adc" query: ALTER TABLE "core"."role" ALTER COLUMN "universalIdentifier" SET NOT NULL query failed: ALTER TABLE "core"."role" ALTER COLUMN "universalIdentifier" SET NOT NULL error: error: column "universalIdentifier" of relation "role" contains null values query: ROLLBACK TO SAVEPOINT sp_make_role_universal_identifier_and_application_id_not_nullable query: RELEASE SAVEPOINT sp_make_role_universal_identifier_and_application_id_not_nullable Swallowing MakeRoleUniversalIdentifierAndApplicationIdNotNullable1768213174275 error QueryFailedError: column "universalIdentifier" of relation "role" contains null values at PostgresQueryRunner.query (/Users/fcaballero/MORA/twenty/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:219:19) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async makeRoleUniversalIdentifierAndApplicationIdNotNullableQueries (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/utils/1768213174275-makeRoleUniversalIdentifierAndApplicationIdNotNullable.util.js:14:5) at async MakeRoleUniversalIdentifierAndApplicationIdNotNullable1768213174275.up (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/common/1768213174275-makeRoleUniversalIdentifierAndApplicationIdNotNullable.js:17:13) at async MigrationExecutor.executePendingMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/migration/MigrationExecutor.js:225:17) at async DataSource.runMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/data-source/DataSource.js:265:35) at async Object.handler (/Users/fcaballero/MORA/twenty/node_modules/typeorm/commands/MigrationRunCommand.js:68:13) { query: 'ALTER TABLE "core"."role" ALTER COLUMN "universalIdentifier" SET NOT NULL', parameters: undefined, driverError: error: column "universalIdentifier" of relation "role" contains null values at /Users/fcaballero/MORA/twenty/node_modules/pg/lib/client.js:526:17 at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async PostgresQueryRunner.query (/Users/fcaballero/MORA/twenty/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:184:25) at async makeRoleUniversalIdentifierAndApplicationIdNotNullableQueries (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/utils/1768213174275-makeRoleUniversalIdentifierAndApplicationIdNotNullable.util.js:14:5) at async MakeRoleUniversalIdentifierAndApplicationIdNotNullable1768213174275.up (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/common/1768213174275-makeRoleUniversalIdentifierAndApplicationIdNotNullable.js:17:13) at async MigrationExecutor.executePendingMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/migration/MigrationExecutor.js:225:17) at async DataSource.runMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/data-source/DataSource.js:265:35) at async Object.handler (/Users/fcaballero/MORA/twenty/node_modules/typeorm/commands/MigrationRunCommand.js:68:13) { length: 164, severity: 'ERROR', code: '23502', detail: undefined, hint: undefined, position: undefined, internalPosition: undefined, internalQuery: undefined, where: undefined, schema: 'core', table: 'role', column: 'universalIdentifier', dataType: undefined, constraint: undefined, file: 'tablecmds.c', line: '6116', routine: 'ATRewriteTable' }, length: 164, severity: 'ERROR', code: '23502', detail: undefined, hint: undefined, position: undefined, internalPosition: undefined, internalQuery: undefined, where: undefined, schema: 'core', table: 'role', column: 'universalIdentifier', dataType: undefined, constraint: undefined, file: 'tablecmds.c', line: '6116', routine: 'ATRewriteTable' } query: INSERT INTO "core"."_typeorm_migrations"("timestamp", "name") VALUES ($1, $2) -- PARAMETERS: [1768213174275,"MakeRoleUniversalIdentifierAndApplicationIdNotNullable1768213174275"] Migration MakeRoleUniversalIdentifierAndApplicationIdNotNullable1768213174275 has been executed successfully. query: ALTER TABLE "core"."routeTrigger" ADD "forwardedRequestHeaders" jsonb NOT NULL DEFAULT '[]' query: INSERT INTO "core"."_typeorm_migrations"("timestamp", "name") VALUES ($1, $2) -- PARAMETERS: [1768399525609,"AddForwardedRequestHeadersInRouteTriggers1768399525609"] Migration AddForwardedRequestHeadersInRouteTriggers1768399525609 has been executed successfully. query: CREATE TABLE "core"."frontComponent" ("workspaceId" uuid NOT NULL, "universalIdentifier" uuid NOT NULL, "applicationId" uuid NOT NULL, "id" uuid NOT NULL DEFAULT uuid_generate_v4(), "name" character varying NOT NULL, "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "updatedAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), CONSTRAINT "PK_843479d93ef40e58dc4587339aa" PRIMARY KEY ("id")) query: CREATE UNIQUE INDEX "IDX_a1413f7f0e71cb5825ac40c4fa" ON "core"."frontComponent" ("workspaceId", "universalIdentifier") query: ALTER TABLE "core"."frontComponent" ADD CONSTRAINT "FK_b5e4eea33659f066e865ab6afe0" FOREIGN KEY ("workspaceId") REFERENCES "core"."workspace"("id") ON DELETE CASCADE ON UPDATE NO ACTION query: ALTER TABLE "core"."frontComponent" ADD CONSTRAINT "FK_63e430d5f8e554c4282e7b48876" FOREIGN KEY ("applicationId") REFERENCES "core"."application"("id") ON DELETE CASCADE ON UPDATE NO ACTION query: INSERT INTO "core"."_typeorm_migrations"("timestamp", "name") VALUES ($1, $2) -- PARAMETERS: [1768495429374,"AddFrontComponent1768495429374"] Migration AddFrontComponent1768495429374 has been executed successfully. query: CREATE TYPE "core"."commandMenuItem_availabilitytype_enum" AS ENUM('GLOBAL', 'SINGLE_RECORD', 'BULK_RECORDS') query: CREATE TABLE "core"."commandMenuItem" ("workspaceId" uuid NOT NULL, "universalIdentifier" uuid NOT NULL, "applicationId" uuid NOT NULL, "id" uuid NOT NULL DEFAULT uuid_generate_v4(), "workflowVersionId" uuid NOT NULL, "label" character varying NOT NULL, "icon" character varying, "isPinned" boolean NOT NULL DEFAULT false, "availabilityType" "core"."commandMenuItem_availabilitytype_enum" NOT NULL DEFAULT 'GLOBAL', "availabilityObjectMetadataId" uuid, "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "updatedAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), CONSTRAINT "PK_fd076dc869e721593133fe8a007" PRIMARY KEY ("id")) query: CREATE UNIQUE INDEX "IDX_a3a5976e1b580ba1086c595802" ON "core"."commandMenuItem" ("workspaceId", "universalIdentifier") query: CREATE INDEX "IDX_COMMAND_MENU_ITEM_WORKFLOW_VERSION_ID_WORKSPACE_ID" ON "core"."commandMenuItem" ("workflowVersionId", "workspaceId") query: ALTER TABLE "core"."commandMenuItem" ADD CONSTRAINT "FK_94947770f00413f134a1ec01dd7" FOREIGN KEY ("workspaceId") REFERENCES "core"."workspace"("id") ON DELETE CASCADE ON UPDATE NO ACTION query: ALTER TABLE "core"."commandMenuItem" ADD CONSTRAINT "FK_ad42dd64b117491a38120466d65" FOREIGN KEY ("applicationId") REFERENCES "core"."application"("id") ON DELETE CASCADE ON UPDATE NO ACTION query: ALTER TABLE "core"."commandMenuItem" ADD CONSTRAINT "FK_6e050fb56a8385718123a4f8bc6" FOREIGN KEY ("availabilityObjectMetadataId") REFERENCES "core"."objectMetadata"("id") ON DELETE CASCADE ON UPDATE NO ACTION query: INSERT INTO "core"."_typeorm_migrations"("timestamp", "name") VALUES ($1, $2) -- PARAMETERS: [1768503887441,"AddCommandMenuItemEntity1768503887441"] Migration AddCommandMenuItemEntity1768503887441 has been executed successfully. query: ALTER TABLE "core"."file" DROP COLUMN "name" query: ALTER TABLE "core"."file" DROP COLUMN "fullPath" query: ALTER TABLE "core"."file" DROP COLUMN "type" query: ALTER TABLE "core"."file" ADD "applicationId" uuid query: ALTER TABLE "core"."file" ADD "path" character varying NOT NULL query: ALTER TABLE "core"."file" ADD "updatedAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now() query: ALTER TABLE "core"."file" ADD "deletedAt" TIMESTAMP WITH TIME ZONE query: ALTER TABLE "core"."file" ADD "isStaticAsset" boolean NOT NULL DEFAULT false query: ALTER TABLE "core"."file" ADD CONSTRAINT "FK_413aaaf293284c3c0266d0bab3a" FOREIGN KEY ("applicationId") REFERENCES "core"."application"("id") ON DELETE RESTRICT ON UPDATE NO ACTION query: INSERT INTO "core"."_typeorm_migrations"("timestamp", "name") VALUES ($1, $2) -- PARAMETERS: [1768572831179,"UpdateFileTable1768572831179"] Migration UpdateFileTable1768572831179 has been executed successfully. query: DROP INDEX "core"."IDX_VIEW_FILTER_VIEW_ID" query: DROP INDEX "core"."IDX_VIEW_FILTER_GROUP_VIEW_ID" query: DROP INDEX "core"."IDX_VIEW_GROUP_VIEW_ID" query: DROP INDEX "core"."IDX_VIEW_SORT_VIEW_ID" query: DROP INDEX "core"."IDX_VIEW_FIELD_VIEW_ID" query: CREATE INDEX "IDX_ROLE_TARGET_ROLE_ID" ON "core"."roleTarget" ("roleId") query: CREATE INDEX "IDX_RLPP_WORKSPACE_MEMBER_FIELD_METADATA_ID" ON "core"."rowLevelPermissionPredicate" ("workspaceMemberFieldMetadataId") query: CREATE INDEX "IDX_RLPPG_PARENT_GROUP_ID" ON "core"."rowLevelPermissionPredicateGroup" ("parentRowLevelPermissionPredicateGroupId") query: CREATE INDEX "IDX_VIEW_FILTER_VIEW_ID" ON "core"."viewFilter" ("viewId") query: CREATE INDEX "IDX_VIEW_FILTER_GROUP_PARENT_ID" ON "core"."viewFilterGroup" ("parentViewFilterGroupId") query: CREATE INDEX "IDX_VIEW_FILTER_GROUP_VIEW_ID" ON "core"."viewFilterGroup" ("viewId") query: CREATE INDEX "IDX_VIEW_GROUP_VIEW_ID" ON "core"."viewGroup" ("viewId") query: CREATE INDEX "IDX_VIEW_SORT_FIELD_METADATA_ID" ON "core"."viewSort" ("fieldMetadataId") query: CREATE INDEX "IDX_VIEW_SORT_VIEW_ID" ON "core"."viewSort" ("viewId") query: CREATE INDEX "IDX_VIEW_CREATED_BY_USER_WORKSPACE" ON "core"."view" ("createdByUserWorkspaceId") query: CREATE INDEX "IDX_VIEW_MAIN_GROUP_BY_FIELD_METADATA" ON "core"."view" ("mainGroupByFieldMetadataId") query: CREATE INDEX "IDX_VIEW_KANBAN_FIELD_METADATA" ON "core"."view" ("kanbanAggregateOperationFieldMetadataId") query: CREATE INDEX "IDX_VIEW_CALENDAR_FIELD_METADATA" ON "core"."view" ("calendarFieldMetadataId") query: CREATE INDEX "IDX_VIEW_FIELD_FIELD_METADATA_ID" ON "core"."viewField" ("fieldMetadataId") query: CREATE INDEX "IDX_VIEW_FIELD_VIEW_ID" ON "core"."viewField" ("viewId") query: CREATE INDEX "IDX_OBJECT_METADATA_DATA_SOURCE_ID" ON "core"."objectMetadata" ("dataSourceId") query: CREATE INDEX "IDX_CRON_TRIGGER_SERVERLESS_FUNCTION_ID" ON "core"."cronTrigger" ("serverlessFunctionId") query: CREATE INDEX "IDX_DATABASE_EVENT_TRIGGER_SERVERLESS_FUNCTION_ID" ON "core"."databaseEventTrigger" ("serverlessFunctionId") query: CREATE INDEX "IDX_ROUTE_TRIGGER_SERVERLESS_FUNCTION_ID" ON "core"."routeTrigger" ("serverlessFunctionId") query: CREATE INDEX "IDX_SERVERLESS_FUNCTION_LAYER_ID" ON "core"."serverlessFunction" ("serverlessFunctionLayerId") query: CREATE INDEX "IDX_PAGE_LAYOUT_WIDGET_OBJECT_METADATA_ID" ON "core"."pageLayoutWidget" ("objectMetadataId") query: CREATE INDEX "IDX_COMMAND_MENU_ITEM_AVAILABILITY_OBJECT_METADATA_ID" ON "core"."commandMenuItem" ("availabilityObjectMetadataId") query: INSERT INTO "core"."_typeorm_migrations"("timestamp", "name") VALUES ($1, $2) -- PARAMETERS: [1768750308557,"ForeignKeyIndexStandardization1768750308557"] Migration ForeignKeyIndexStandardization1768750308557 has been executed successfully. query: CREATE TABLE "core"."navigationMenuItem" ("workspaceId" uuid NOT NULL, "universalIdentifier" uuid NOT NULL, "applicationId" uuid NOT NULL, "id" uuid NOT NULL DEFAULT uuid_generate_v4(), "userWorkspaceId" uuid, "targetRecordId" uuid, "targetObjectMetadataId" uuid, "viewId" uuid, "name" text, "folderId" uuid, "position" integer NOT NULL, "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "updatedAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), CONSTRAINT "CHK_navigation_menu_item_target_fields" CHECK (("targetRecordId" IS NULL AND "targetObjectMetadataId" IS NULL) OR ("targetRecordId" IS NOT NULL AND "targetObjectMetadataId" IS NOT NULL)), CONSTRAINT "PK_d8689756f55769faea7dc0ae968" PRIMARY KEY ("id")) query: CREATE UNIQUE INDEX "IDX_4d8beaebdfcd5d82ebe6e8b58f" ON "core"."navigationMenuItem" ("workspaceId", "universalIdentifier") query: CREATE INDEX "IDX_NAVIGATION_MENU_ITEM_VIEW_ID_WORKSPACE_ID" ON "core"."navigationMenuItem" ("viewId", "workspaceId") query: CREATE INDEX "IDX_NAVIGATION_MENU_ITEM_FOLDER_ID_WORKSPACE_ID" ON "core"."navigationMenuItem" ("folderId", "workspaceId") query: CREATE INDEX "IDX_NAVIGATION_MENU_ITEM_TARGET_RECORD_OBJ_METADATA_WS_ID" ON "core"."navigationMenuItem" ("targetRecordId", "targetObjectMetadataId", "workspaceId") query: CREATE INDEX "IDX_NAVIGATION_MENU_ITEM_USER_WORKSPACE_ID_WORKSPACE_ID" ON "core"."navigationMenuItem" ("userWorkspaceId", "workspaceId") query: ALTER TABLE "core"."navigationMenuItem" ADD CONSTRAINT "FK_03c63a0b00ddc3ade21ed0b1a80" FOREIGN KEY ("workspaceId") REFERENCES "core"."workspace"("id") ON DELETE CASCADE ON UPDATE NO ACTION query: ALTER TABLE "core"."navigationMenuItem" ADD CONSTRAINT "FK_6fd84a774fe4ea4daa9aeeee5ed" FOREIGN KEY ("applicationId") REFERENCES "core"."application"("id") ON DELETE CASCADE ON UPDATE NO ACTION query: ALTER TABLE "core"."navigationMenuItem" ADD CONSTRAINT "FK_b2e02050a5faa58ed3e08624659" FOREIGN KEY ("userWorkspaceId") REFERENCES "core"."userWorkspace"("id") ON DELETE CASCADE ON UPDATE NO ACTION query: ALTER TABLE "core"."navigationMenuItem" ADD CONSTRAINT "FK_62d47d14b50b67a03f832481de7" FOREIGN KEY ("targetObjectMetadataId") REFERENCES "core"."objectMetadata"("id") ON DELETE CASCADE ON UPDATE NO ACTION query: ALTER TABLE "core"."navigationMenuItem" ADD CONSTRAINT "FK_175fc64110c36793eaf9765d1c6" FOREIGN KEY ("folderId") REFERENCES "core"."navigationMenuItem"("id") ON DELETE CASCADE ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED query: INSERT INTO "core"."_typeorm_migrations"("timestamp", "name") VALUES ($1, $2) -- PARAMETERS: [1768807499350,"AddNavigationMenuItemEntity1768807499350"] Migration AddNavigationMenuItemEntity1768807499350 has been executed successfully. query: SAVEPOINT sp_make_index_metadata_universal_identifier_and_application_id_not_nullable query: ALTER TABLE "core"."indexMetadata" DROP CONSTRAINT "FK_056363e1599f5b9a0e33323d9da" query: DROP INDEX "core"."IDX_b27c681286ac581f81498c5d4b" query: ALTER TABLE "core"."indexMetadata" ALTER COLUMN "universalIdentifier" SET NOT NULL query failed: ALTER TABLE "core"."indexMetadata" ALTER COLUMN "universalIdentifier" SET NOT NULL error: error: column "universalIdentifier" of relation "indexMetadata" contains null values query: ROLLBACK TO SAVEPOINT sp_make_index_metadata_universal_identifier_and_application_id_not_nullable query: RELEASE SAVEPOINT sp_make_index_metadata_universal_identifier_and_application_id_not_nullable Swallowing MakeIndexMetadataUniversalIdentifierAndApplicationIdNotNullable1768830235328 error QueryFailedError: column "universalIdentifier" of relation "indexMetadata" contains null values at PostgresQueryRunner.query (/Users/fcaballero/MORA/twenty/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:219:19) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async makeIndexMetadataUniversalIdentifierAndApplicationIdNotNullableQueries (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/utils/1768830235328-makeIndexMetadataUniversalIdentifierAndApplicationIdNotNullable.util.js:14:5) at async MakeIndexMetadataUniversalIdentifierAndApplicationIdNotNullable1768830235328.up (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/common/1768830235328-makeIndexMetadataUniversalIdentifierAndApplicationIdNotNullable.js:17:13) at async MigrationExecutor.executePendingMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/migration/MigrationExecutor.js:225:17) at async DataSource.runMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/data-source/DataSource.js:265:35) at async Object.handler (/Users/fcaballero/MORA/twenty/node_modules/typeorm/commands/MigrationRunCommand.js:68:13) { query: 'ALTER TABLE "core"."indexMetadata" ALTER COLUMN "universalIdentifier" SET NOT NULL', parameters: undefined, driverError: error: column "universalIdentifier" of relation "indexMetadata" contains null values at /Users/fcaballero/MORA/twenty/node_modules/pg/lib/client.js:526:17 at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async PostgresQueryRunner.query (/Users/fcaballero/MORA/twenty/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:184:25) at async makeIndexMetadataUniversalIdentifierAndApplicationIdNotNullableQueries (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/utils/1768830235328-makeIndexMetadataUniversalIdentifierAndApplicationIdNotNullable.util.js:14:5) at async MakeIndexMetadataUniversalIdentifierAndApplicationIdNotNullable1768830235328.up (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/common/1768830235328-makeIndexMetadataUniversalIdentifierAndApplicationIdNotNullable.js:17:13) at async MigrationExecutor.executePendingMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/migration/MigrationExecutor.js:225:17) at async DataSource.runMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/data-source/DataSource.js:265:35) at async Object.handler (/Users/fcaballero/MORA/twenty/node_modules/typeorm/commands/MigrationRunCommand.js:68:13) { length: 182, severity: 'ERROR', code: '23502', detail: undefined, hint: undefined, position: undefined, internalPosition: undefined, internalQuery: undefined, where: undefined, schema: 'core', table: 'indexMetadata', column: 'universalIdentifier', dataType: undefined, constraint: undefined, file: 'tablecmds.c', line: '6116', routine: 'ATRewriteTable' }, length: 182, severity: 'ERROR', code: '23502', detail: undefined, hint: undefined, position: undefined, internalPosition: undefined, internalQuery: undefined, where: undefined, schema: 'core', table: 'indexMetadata', column: 'universalIdentifier', dataType: undefined, constraint: undefined, file: 'tablecmds.c', line: '6116', routine: 'ATRewriteTable' } query: INSERT INTO "core"."_typeorm_migrations"("timestamp", "name") VALUES ($1, $2) -- PARAMETERS: [1768830235328,"MakeIndexMetadataUniversalIdentifierAndApplicationIdNotNullable1768830235328"] Migration MakeIndexMetadataUniversalIdentifierAndApplicationIdNotNullable1768830235328 has been executed successfully. query: SAVEPOINT sp_make_remaining_entities_universal_identifier_and_application_id_not_nullable query: ALTER TABLE "core"."roleTarget" DROP CONSTRAINT "FK_b1db027b64f44029389ace305ac" query: DROP INDEX "core"."IDX_0082568653b80c15903c5a2ba9" query: ALTER TABLE "core"."roleTarget" ALTER COLUMN "universalIdentifier" SET NOT NULL query failed: ALTER TABLE "core"."roleTarget" ALTER COLUMN "universalIdentifier" SET NOT NULL error: error: column "universalIdentifier" of relation "roleTarget" contains null values query: ROLLBACK TO SAVEPOINT sp_make_remaining_entities_universal_identifier_and_application_id_not_nullable query: RELEASE SAVEPOINT sp_make_remaining_entities_universal_identifier_and_application_id_not_nullable Swallowing MakeRemainingEntitiesUniversalIdentifierAndApplicationIdNotNullable1768916632478 error QueryFailedError: column "universalIdentifier" of relation "roleTarget" contains null values at PostgresQueryRunner.query (/Users/fcaballero/MORA/twenty/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:219:19) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async makeRemainingEntitiesUniversalIdentifierAndApplicationIdNotNullableQueries (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/utils/1768916632478-makeRemainingEntitiesUniversalIdentifierAndApplicationIdNotNullable.util.js:14:5) at async MakeRemainingEntitiesUniversalIdentifierAndApplicationIdNotNullable1768916632478.up (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/common/1768916632478-makeRemainingEntitiesUniversalIdentifierAndApplicationIdNotNullable.js:17:13) at async MigrationExecutor.executePendingMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/migration/MigrationExecutor.js:225:17) at async DataSource.runMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/data-source/DataSource.js:265:35) at async Object.handler (/Users/fcaballero/MORA/twenty/node_modules/typeorm/commands/MigrationRunCommand.js:68:13) { query: 'ALTER TABLE "core"."roleTarget" ALTER COLUMN "universalIdentifier" SET NOT NULL', parameters: undefined, driverError: error: column "universalIdentifier" of relation "roleTarget" contains null values at /Users/fcaballero/MORA/twenty/node_modules/pg/lib/client.js:526:17 at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async PostgresQueryRunner.query (/Users/fcaballero/MORA/twenty/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:184:25) at async makeRemainingEntitiesUniversalIdentifierAndApplicationIdNotNullableQueries (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/utils/1768916632478-makeRemainingEntitiesUniversalIdentifierAndApplicationIdNotNullable.util.js:14:5) at async MakeRemainingEntitiesUniversalIdentifierAndApplicationIdNotNullable1768916632478.up (/Users/fcaballero/MORA/twenty/packages/twenty-server/dist/database/typeorm/core/migrations/common/1768916632478-makeRemainingEntitiesUniversalIdentifierAndApplicationIdNotNullable.js:17:13) at async MigrationExecutor.executePendingMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/migration/MigrationExecutor.js:225:17) at async DataSource.runMigrations (/Users/fcaballero/MORA/twenty/node_modules/typeorm/data-source/DataSource.js:265:35) at async Object.handler (/Users/fcaballero/MORA/twenty/node_modules/typeorm/commands/MigrationRunCommand.js:68:13) { length: 176, severity: 'ERROR', code: '23502', detail: undefined, hint: undefined, position: undefined, internalPosition: undefined, internalQuery: undefined, where: undefined, schema: 'core', table: 'roleTarget', column: 'universalIdentifier', dataType: undefined, constraint: undefined, file: 'tablecmds.c', line: '6116', routine: 'ATRewriteTable' }, length: 176, severity: 'ERROR', code: '23502', detail: undefined, hint: undefined, position: undefined, internalPosition: undefined, internalQuery: undefined, where: undefined, schema: 'core', table: 'roleTarget', column: 'universalIdentifier', dataType: undefined, constraint: undefined, file: 'tablecmds.c', line: '6116', routine: 'ATRewriteTable' } query: INSERT INTO "core"."_typeorm_migrations"("timestamp", "name") VALUES ($1, $2) -- PARAMETERS: [1768916632478,"MakeRemainingEntitiesUniversalIdentifierAndApplicationIdNotNullable1768916632478"] Migration MakeRemainingEntitiesUniversalIdentifierAndApplicationIdNotNullable1768916632478 has been executed successfully. query: ALTER TABLE "core"."serverlessFunction" ADD "builtHandlerPath" character varying NOT NULL DEFAULT 'index.mjs' query: INSERT INTO "core"."_typeorm_migrations"("timestamp", "name") VALUES ($1, $2) -- PARAMETERS: [1769016869438,"AddBuiltHandlerPathToServerlessFunctions1769016869438"] Migration AddBuiltHandlerPathToServerlessFunctions1769016869438 has been executed successfully. query: ALTER TABLE "core"."serverlessFunction" RENAME COLUMN "handlerPath" TO "sourceHandlerPath" query: INSERT INTO "core"."_typeorm_migrations"("timestamp", "name") VALUES ($1, $2) -- PARAMETERS: [1769091641000,"RenameHandlerPathToSourceHandlerPath1769091641000"] Migration RenameHandlerPathToSourceHandlerPath1769091641000 has been executed successfully. query: COMMIT