Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

Re : Error running yaml changelog after using generateChangeLog on database

$
0
0
In case it helps anyone I figured out the issues with the above.  

When running the generateChangeLog it gave me a type of datetime(6) which I was then passing defaultValueComputed: CURRENT_TIMESTAMP which was evaluated to now().  Once I changed it to just datetime all is well.  

One other issue I was seeing was my constraints were not properly being evaluated so that I was ending up with not null fields or a missing primary key and that turned out to be because of the double "constraints:" lines as seen above.  Once I removed one of the "constraints:" my primary keys and null constraints started working correctly.  

Viewing all articles
Browse latest Browse all 2993

Trending Articles