on ‎2019 May 24 1:01 PM
Request clarification before answering.
Hi - I believe, you are looking for a Groovy script to alter the database table. Please try the following and let me know if it works:
import de.hybris.platform.core.Registry
conn = Registry.getCurrentTenant().getDataSource().getConnection()
stmt = conn.createStatement()
ddlQuery = "YOUR SQL ALTER COMMAND"
stmt.executeUpdate(ddlQuery)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mohammed , You can do like coulmntype in items .xml
<columntype database="oracle">
<value>CLOB</value>
</columntype>
<columntype database="sqlserver">
<value>nvarchar(max)</value>
</columntype>
<columntype database="mysql">
<value>TEXT</value>
</columntype>
<columntype>
<value>HYBRIS.LONG_STRING</value>
</columntype>
</persistence>
thanks, prabhakar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.