Comments (2)
Hey @calvin2021y and thanks for reporting this issue 👋
Can you share what's the MySQL version you use?
AFAIK, omitting the DEFAULT
clause is equal to adding it with DEFAULT NULL
, so removing the default = null
should solve the issue here. See:
from atlas.
You are right, I am not check the SQL carefully.
Mysql 5.7.37.
CREATE TABLE `test` (
`id` int(11) NOT NULL,
`update_time` timestamp
)
after create table export to this:
CREATE TABLE `test` (
`id` int(11) NOT NULL,
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
from atlas.
Related Issues (20)
- SQL Server driver generating invalid SQL for down migration pre-checks HOT 1
- Invalid definitions for COLUMNSTORE and SPATIAL Indexes for SQL Server
- Dynamic Table Names / Schema Names not Supported HOT 2
- <atlas schema inspect>Issue when password has an at sign HOT 3
- CVE in github.com/vektah/gqlparser/v2 dependency HOT 4
- Error: drop "<view_name>" view: pq: cannot drop view <view_name> because other objects depend on it HOT 1
- Unique Constraints is not being applied HOT 2
- Generate SQL migration scripts doesn
- Customizing DDL generation in HCL HOT 3
- Support for system versioned tables in MariaDB
- atlas-operator cannot be download using terraform
- Correct imports so gazelle (a bazel build tool) can inspect and construct bazel build files HOT 1
- Support Logical-Replication Subscriptions in PostgreSQL
- bug: `altas schema diff` misbehaves when tables share a constraint name HOT 2
- Support for Clickhouse NOT NULL table column HOT 6
- offer more verifiable installation methods HOT 2
- cannot enable atlas-migrator to reset (clean) a database HOT 2
- support for Oracle dialect? HOT 2
- Add support for specifying lock timeout for declarative workflow HOT 3
- Follow the Freedesktop XDG base directory standard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atlas.