如何在 JDL-Studio 中为字符串指定 MySQL 数据类型
How can I specify MySQL data type for String in JDL-Studio
在我的 JDL 文件中,我有一个包含以下内容的文件
entity Application {
...
text String,
...
}
当为liquibase生成XML文件时,MySQL数据类型默认设置为varchar(255)
,我想要text
或mediumtext
作为类型。
<column name="text" type="text">
<constraints nullable="true" />
</column>
我怎样才能做到这一点?
对较长的字符串使用 JDL 的 TextBlob 类型。使用映射到 longtext
或 text
depending on the database.
的 clob
Liquibase 类型
entity Application {
text TextBlob
}
在我的 JDL 文件中,我有一个包含以下内容的文件
entity Application {
...
text String,
...
}
当为liquibase生成XML文件时,MySQL数据类型默认设置为varchar(255)
,我想要text
或mediumtext
作为类型。
<column name="text" type="text">
<constraints nullable="true" />
</column>
我怎样才能做到这一点?
对较长的字符串使用 JDL 的 TextBlob 类型。使用映射到 longtext
或 text
depending on the database.
clob
Liquibase 类型
entity Application {
text TextBlob
}