Giter VIP home page Giter VIP logo

Comments (2)

simov avatar simov commented on May 17, 2024

Hi, @fedaykinofdune

The problem is the validator makes certain assumptions about the timestamp format outlined here

I'm assuming you want to edit existing records, that have a timestamp field already set.

In this case a very quick and dirty fix will be to set the timestamp column type to varchar(255), as the text fields doesn't have any other validation except for their length, and leave the control type as text.

{
    "control": {
        "text": true
    },
    "type": "varchar(255)"
}

The value of the type key is related only to the validation process.

Let me know if this doesn't work, or if your configuration requires something else.

from express-admin.

fedaykinofdune avatar fedaykinofdune commented on May 17, 2024

Excellent, thanks for the explanation, I'm still familiarizing myself with
mySQL so your tool really helps out with some constant headaches. Thanks
for the workaround as well! Normally if I have to edit anything in my
pool's database, I have to change a batch of share id's or something which
can be done in one line but your tool is particularly useful for looking at
and then manually flagging "strange" records for later comparison, so the
workaround will definitely help!

On Fri, Jun 20, 2014 at 2:58 AM, simo [email protected] wrote:

Hi, @fedaykinofdune https://github.com/fedaykinofdune

The problem is the validator makes certain assumptions about the timestamp
format outlined here
http://dev.mysql.com/doc/refman/5.1/en/datetime.html

I'm assuming you want to edit existing records, that have a timestamp
field already set.

In this case a very quick and dirty fix will be to set the timestamp
column type to varchar(255), as the text fields doesn't have any other
validation except for their length, and leave the control type as text.

{
"control": {
"text": true
},
"type": "varchar(255)"}

The value of the type key is related only to the validation process.

Let me know if this doesn't work, or if your configuration requires
something else.


Reply to this email directly or view it on GitHub
#50 (comment).

from express-admin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.