postgresql 数据库的特殊处理

This commit is contained in:
2025-06-05 09:39:08 +08:00
parent 7b9b72e815
commit c45e65433b

View File

@ -13,6 +13,9 @@
# postgis 启用 gis 扩展
CREATE DATABASE {{ cookiecutter.mvn_artifact_id }} WITH ENCODING = 'utf8';
CREATE EXTENSION postgis;
# 开启 bigint 与 character 自动转换
CREATE CAST (character varying AS bigint) WITH INOUT AS IMPLICIT;
```
2. 项目运行