diff options
| author | anatawa12 <anatawa12@icloud.com> | 2025-10-19 11:34:34 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-19 11:34:34 +0900 |
| commit | 44930342a80fec860f1ca843a3d429e46267e030 (patch) | |
| tree | ee7f5e29d736db3e44fb6197c37e05ecb5f4058b /patches | |
| parent | enhance: リモートユーザーのロールバッジを表示するかど... (diff) | |
| download | misskey-44930342a80fec860f1ca843a3d429e46267e030.tar.gz misskey-44930342a80fec860f1ca843a3d429e46267e030.tar.bz2 misskey-44930342a80fec860f1ca843a3d429e46267e030.zip | |
Revert typeorm patches (#16664)
* chore: remove patches
* chore: remove unnecessary 'DEFAULT NULL's
* chore: add patches with .gitkeep
Diffstat (limited to 'patches')
| -rw-r--r-- | patches/.gitkeep | 0 | ||||
| -rw-r--r-- | patches/typeorm.patch | 17 |
2 files changed, 0 insertions, 17 deletions
diff --git a/patches/.gitkeep b/patches/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/patches/.gitkeep diff --git a/patches/typeorm.patch b/patches/typeorm.patch deleted file mode 100644 index 6b30cddb66..0000000000 --- a/patches/typeorm.patch +++ /dev/null @@ -1,17 +0,0 @@ -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. |