Merge pull request #318 from neko-neko/add-ltree-support

Add ltree type support for PostgreSQL
This commit is contained in:
kononnable 2021-01-07 19:50:26 +01:00 committed by GitHub
commit d71c13e9f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -428,6 +428,7 @@ export default class PostgresDriver extends AbstractDriver {
case "hstore":
case "geography":
case "geometry":
case "ltree":
ret.sqlType = udtName;
break;
default:

View File

@ -189,4 +189,7 @@ export class Post {
@Column("geography")
geography: string;
@Column("ltree")
ltree: string;
}