π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix: skip validation for unique constraint when both previous and existing are unique
Pranav C921057df9074
diff --git a/packages/nocodb/src/services/columns.service.ts b/packages/nocodb/src/services/columns.service.tsindex 46577c488e..7dbc2ac8a8 100644--- a/packages/nocodb/src/services/columns.service.ts+++ b/packages/nocodb/src/services/columns.service.ts@@ -656,8 +656,12 @@ export class ColumnsService implements IColumnsService {// Check if disabling unique constraint (always allowed)if (!param.column.unique && column.unique) {// Disabling is allowed, no validation needed+ }+ // if previous and existing are unique, no need to validate+ else if (param.column.unique && column.unique) {+ // no validation needed} else if (param.column.unique) {- // Enabling or keeping unique constraint enabled+ // Enabling unique constraint enabledvalidateUniqueConstraint(context,(param.column.uidt || column.uidt) as UITypes,