<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>CDT Column type Change</title><link>https://community.appian.com/discussions/f/data/12279/cdt-column-type-change</link><description>Hi I have CDT linked to the table in database. I changed column from text to number. However underline table column is text. So how column type changes in CDT can be updated up to Table. Any help would be highly appreciated. 
 
 Regards 
 Shrirang</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: CDT Column type Change</title><link>https://community.appian.com/thread/62919?ContentTypeID=1</link><pubDate>Wed, 21 Nov 2018 12:03:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e38edef6-7189-4093-8e7f-120b743b6fe8</guid><dc:creator>Naveen Chandu</dc:creator><description>Hello Shrirang,&lt;br /&gt;
&lt;br /&gt;
You can not change the data type of a column in a database even if your data entity is managed as &amp;quot;automatically update database schema&amp;quot; . You have to download the DDL script after updating the CDT and run it directly on database. Then check the mappings again and publish the data store again.&lt;br /&gt;
&lt;br /&gt;
Hope this clears.&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
Naveen&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDT Column type Change</title><link>https://community.appian.com/thread/54323?ContentTypeID=1</link><pubDate>Sun, 22 Apr 2018 22:42:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1e2bc29d-c6b4-47d8-9bf8-2a516a41ef07</guid><dc:creator>aloks0189</dc:creator><description>Hi &lt;a href="/members/shrirangh"&gt;shrirangh&lt;/a&gt;  it&amp;#39;s always a good idea to follow the below mention steps in order to change the data type of a table:&lt;br /&gt;
&lt;br /&gt;
1. Write and execute the alter script to truncate the target column (But not the table)&lt;br /&gt;
2.  Write and execute the alter script to change the column type&lt;br /&gt;
3. Edit the cdt directly or via downloaded xsd file and click on save&lt;br /&gt;
4. This verifies the data store entity and if all good you will find a success notification.&lt;br /&gt;
&lt;br /&gt;
I don&amp;#39;t think, there are any ways to update the column type via appian because if that column has some value then this operation will fail.&lt;br /&gt;
&lt;br /&gt;
Hope this will help.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDT Column type Change</title><link>https://community.appian.com/thread/54319?ContentTypeID=1</link><pubDate>Sat, 21 Apr 2018 12:52:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c9e333c0-9130-4e0e-a75d-83997fbcf754</guid><dc:creator>prashantm963</dc:creator><description>Hi Shrirang, &lt;br /&gt;
&lt;br /&gt;
if that column contains any data then it will not be done.  You need to truncate that column and run alter command manually or delete that column and publish your datastore again.&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Prashant&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDT Column type Change</title><link>https://community.appian.com/thread/54318?ContentTypeID=1</link><pubDate>Sat, 21 Apr 2018 11:01:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b8df588b-4ef5-46c9-a7de-a417bbd7a093</guid><dc:creator>shwetap</dc:creator><description>yo have to verify mapping between data store entity and cdt if this throws error then manually have to update db column and verify mapping.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>