Comments (5)
This is because the $table->timestamps('created_at') statement doesn't include a default value for the timestamps column. We should make a PR to fix that bug. To fix this, we have to write the follow in the migration file:
$table->timestamp('created_at')->nullable();
$table->timestamp('updated_at')->nullable();
You can use $table->timestamps() instead.
from laravel-create.
Thanks for reporting @PopescuMarian ! That one slid right through when using sqlite. Im looking into it now.
from laravel-create.
Added to this Trello board. Did not make it today, coming back tomorrow. Thanks @calvinchiulele for pointing out the reason!
from laravel-create.
Fix for the default timestamps released in v0.0.44
. Further updates to come later. Thanks yall!
from laravel-create.
as a quick fix on this, on line 85 of AttributeFactory.js you can change the getNullable method to:
getNullable() {
if (this.getForeign() || ['created_at', 'updated_at'].includes(this.name)){
return true;
}else{
return false;
}
}
from laravel-create.
Related Issues (20)
- Default user and reset password migration removed HOT 3
- failed to open stream: Permission denied HOT 1
- Overriding the templates folder HOT 2
- GUI should keep object model sketch when development server or browser tab is closed. HOT 2
- Ability to create GraphQL type system HOT 3
- Laravel 6 cant generate templates file HOT 2
- Let us add more files after initial file creation HOT 1
- Rebuild doesn't delete old files
- Frontend? HOT 1
- softdeletes doesn't work HOT 4
- API path not working in laravel 6.6.2 HOT 1
- Replacing Route::resource with Route::apiResource HOT 1
- Want to contribute to the project HOT 1
- DataTypes not resolving from __GITHUB_DUMP__
- Broken in Laravel 7 HOT 2
- Closure on route blocks caching routes
- Import existing models HOT 2
- Seeder.php template should use ___MODEL_NAMESPACE___
- license file
- is it possible to create views?
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 laravel-create.