mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-21 03:30:42 +00:00
* fix(deps): update [backend] update dependencies * chore: update typeorm.patch * fix: handle socket creation failure in HttpRequestServiceAgent --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: anatawa12 <anatawa12@icloud.com> Co-authored-by: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com>
18 lines
1.1 KiB
Diff
18 lines
1.1 KiB
Diff
diff --git a/driver/postgres/PostgresDriver.js b/driver/postgres/PostgresDriver.js
|
|
index e13b903c73b71113bb529552e59fb4ce0ca8af0c..50de6a60120ece7ebf49009eac588a5313343f39 100644
|
|
--- a/driver/postgres/PostgresDriver.js
|
|
+++ b/driver/postgres/PostgresDriver.js
|
|
@@ -819,10 +819,10 @@ class PostgresDriver {
|
|
const tableColumnDefault = typeof tableColumn.default === "string"
|
|
? JSON.parse(tableColumn.default.substring(1, tableColumn.default.length - 1))
|
|
: tableColumn.default;
|
|
- return OrmUtils_1.OrmUtils.deepCompare(columnMetadata.default, tableColumnDefault);
|
|
+ return OrmUtils_1.OrmUtils.deepCompare(columnMetadata.default, tableColumnDefault ?? null);
|
|
}
|
|
const columnDefault = this.lowerDefaultValueIfNecessary(this.normalizeDefault(columnMetadata));
|
|
- return columnDefault === tableColumn.default;
|
|
+ return columnDefault === tableColumn.default || columnDefault === undefined && tableColumn.default.toLowerCase() === 'null';
|
|
}
|
|
/**
|
|
* Normalizes "isUnique" value of the column.
|