# Warning about Timestamp when performing migrations

**URL:** <https://www.singlestore.com/forum/t/warning-about-timestamp-when-performing-migrations/7378>\
**Category:** Uncategorized\
**Created:** [December 14, 2023, 5:53pm UTC](https://www.singlestore.com/forum/t/warning-about-timestamp-when-performing-migrations/7378 "2023-12-14T17:53:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![emil.rakaev](https://www.singlestore.com/forum/letter_avatar_proxy/v4/letter/e/c77e96/32.png) [@emil.rakaev](https://www.singlestore.com/forum/u/emil.rakaev)\
**Post date:** [December 14, 2023, 5:53pm UTC](https://www.singlestore.com/forum/t/warning-about-timestamp-when-performing-migrations/7378/1 "2023-12-14T17:53:58Z")

</div>

![Screenshot 2023-12-13 at 20.57.48](https://forum-prod-assets20231213123829991800000001.s3.dualstack.us-east-1.amazonaws.com/original/2X/e/e4854a02edaf09cacbc9e679cbdafb6f11e4b84b.png)  
 ![Screenshot 2023-12-13 at 20.59.49](https://forum-prod-assets20231213123829991800000001.s3.dualstack.us-east-1.amazonaws.com/original/2X/1/1656b1f794d7e19e5695d2ad3c901a2430a098ca.png)  
We are using fast api and sqlalchemy in our project. When i perform migration i get following warning

> WARNI [asyncmy] Feature ‘TIMESTAMP type with conflicting scale’ is not supported by SingleStore. Execution will continue, but the DEFAULT and/or ON UPDATE timestamp scale will match the declared value of column ‘created\_date’. To avoid this warning, change the scale of your DEFAULT and/or ON UPDATE expression to match the declared column type.

Everething working correct but this warning bothers me. Whats problem? could anybody explain me? is it related to singlestore??

---

<div class="post-metadata">

**Author:** ![lzhang](https://www.singlestore.com/forum/letter_avatar_proxy/v4/letter/l/90ced4/32.png) [@lzhang](https://www.singlestore.com/forum/u/lzhang)\
**Post date:** [December 20, 2023, 3:29pm UTC](https://www.singlestore.com/forum/t/warning-about-timestamp-when-performing-migrations/7378/2 "2023-12-20T15:29:48Z")

</div>

It looks like your app set the TIMESTAMP default precision/scale to 6. You want to use (6) explicitly in the following code when CURRENT\_TIMESTAMP is used, ie CURRENT\_TIMESTAMP(6), CURRENT\_TIMESTAMP(6) ON UPDATE CURRENT\_TIMESTAMP(6)) to match that. I think this is what that warning message is saying, ie the setting 6 is conflicting with the default, which is 0. Let me know if this helps.

---

<div class="post-metadata">

**Author:** ![emil.rakaev](https://www.singlestore.com/forum/letter_avatar_proxy/v4/letter/e/c77e96/32.png) [@emil.rakaev](https://www.singlestore.com/forum/u/emil.rakaev)\
**Post date:** [January 8, 2024, 3:42pm UTC](https://www.singlestore.com/forum/t/warning-about-timestamp-when-performing-migrations/7378/3 "2024-01-08T15:42:48Z")

</div>

Yes, you absolutely right. Thanks!
