# Overriding Database's Datatypes

Overriding Database's Datatypes property helps to override default datatype in the database.&#x20;

To enable this property, please follow the below steps.

1. If table is already created/exist in database then set alter.schema.override=true in system.properties and alter.schema.size should be set to false
2. Edit **\<used-Database>.properties** under **<\<install-folder>>\dbsync-repl\WEB-INF\db\conf**
3. The datatype need to be overridden should be added like \<old\_datatype>.default=\<new\_datatype>\
   eg. to override varchar to text, we can write varchar.default=text\
   Note: This will change all varchar fields to new datatype or you can change the limit like Varchar (100) to Varchar (200) or any other number. \
   Remove the # tag before the picklist and save the changes and then run the build again.\
   To change only for specific field use [Force Property](http://help.mydbsync.com/docs/display/CloudReplication/Force+Property)

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mydbsync.com/cloud-replication-main/additional-configuration-settings/overriding-databases-datatypes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
