Deploying to Heroku and having trouble uploading an SQL export from phpMyAdmin
SQL Export Settings:
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
Create Table
CREATE TABLE `posts` (
`id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`title` varchar(255) NOT NULL,
`body` text NOT NULL,
`created_at` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
Error Message
ERROR 1067 (42000) at line 30: Invalid default value for 'created_at'
Using Step 11 from this tutorial on scotch.io
I feel like I am having issues with different versions of MySQL.