mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fixed issue when updating columns in Oracle (#11359)
* Fixed issue when updating columns in Oracle * Fix lint error * Removed optional chaining
This commit is contained in:
@@ -555,10 +555,14 @@ export class FieldsService {
|
||||
}
|
||||
}
|
||||
|
||||
if (field.schema?.is_nullable !== undefined && field.schema.is_nullable === false) {
|
||||
column.notNullable();
|
||||
} else {
|
||||
column.nullable();
|
||||
if (field.schema?.is_nullable === false) {
|
||||
if (!alter || alter.is_nullable === true) {
|
||||
column.notNullable();
|
||||
}
|
||||
} else if (field.schema?.is_nullable === true) {
|
||||
if (!alter || alter.is_nullable === false) {
|
||||
column.nullable();
|
||||
}
|
||||
}
|
||||
|
||||
if (field.schema?.is_primary_key) {
|
||||
|
||||
Reference in New Issue
Block a user