eveningkid / denodb

MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno

Home Page:https://eveningkid.com/denodb-docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DataTypes.DATETIME : Invalid default value for 'create_date'

kinvirgo opened this issue · comments

How to set (type:DataTypes.DATETIME) default value

error: Uncaught (in promise) Error: Invalid default value for 'create_date'
throw new Error(error.message);
^
at PoolConnection.nextPacket (https://deno.land/x/mysql@v2.10.1/src/connection.ts:185:13)
at async PoolConnection.execute (https://deno.land/x/mysql@v2.10.1/src/connection.ts:268:21)
at async https://deno.land/x/mysql@v2.10.1/src/client.ts:97:14
at async Client.useConnection (https://deno.land/x/mysql@v2.10.1/src/client.ts:107:14)
at async Client.execute (https://deno.land/x/mysql@v2.10.1/src/client.ts:96:12)
at async MySQLConnector.query (https://deno.land/x/denodb@v1.0.40/lib/connectors/mysql-connector.ts:80:22)
at async Database.query (https://deno.land/x/denodb@v1.0.40/lib/database.ts:240:21)
at async Function.createTable (https://deno.land/x/denodb@v1.0.40/lib/model.ts:172:5)
at async Database.sync (https://deno.land/x/denodb@v1.0.40/lib/database.ts:210:7)
at async default (file:///E:/kinvirgo.com/deno/seven-fish/models/mod.ts:14:5)