Comments (1)
This was caused by manually setting the created_at fields to null although the schema doesn't allow null.
Providing a default value of 0 for created_at and updated_at in the schema and setting the fields when fights are generated from the double elimination table will fix this problem.
The underlying cause is that Yii's timestamp behaviour doesn't do anything if the table is updated by running a query (via query builder or otherwise), the behaviour only works when the table is accessed via the table model class. So built queries have to manage updated_at and created_at fields manually.
from antlog.
Related Issues (20)
- Antlog assumes SQL auto-increment increment = 1 - add to documentation
- Database export occurs before closing sign-ups HOT 2
- Database incompatibility with strict mode enabled
- Database export: Error in lock instruction
- Outgoing email is signed using DKIM but public key is unavailable HOT 2
- Database is automatically locked on any download HOT 1
- Add ability to force events to complete state
- Undefined variable $temp HOT 2
- Entrant list shows correct number, but incorrect set of results HOT 3
- Apostrophes get mangled in data fields HOT 5
- Some fights pages return an internal error HOT 14
- Add current_fight table to database HOT 1
- Temporary files are not deleted
- Not compatible with PHP7.2 HOT 3
- Need to minimise database download
- Entrant has got to "entered" state in online DB
- Export Feature potentially violates UK Data Protection Laws & GDPR HOT 4
- Can I attend an event as a spectator? HOT 1
- "Something went wrong with the robot tracking" during Antweight Open
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 antlog.