Skip to content

Instantly share code, notes, and snippets.

@micc83
Created June 22, 2021 13:21
Show Gist options
  • Save micc83/f995549a0789b9809a5855618a496390 to your computer and use it in GitHub Desktop.
Save micc83/f995549a0789b9809a5855618a496390 to your computer and use it in GitHub Desktop.
Fix issues with: 1067 Invalid default value for 'created_at'
<?php
// Fix issues with: 1067 Invalid default value for 'created_at'
DB::statement(<<<EOT
ALTER TABLE `users`
MODIFY created_at TIMESTAMP null,
MODIFY updated_at TIMESTAMP null
DEFAULT null;
EOT);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment