Skip to content

Commit 3509fdb

Browse files
committed
Fixes #605
1 parent 2a16254 commit 3509fdb

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## v0.3.1.23
4+
5+
- Also fix the `occurred_at` timestamp in the `user_event` table to allow null, for newer versions of MySQL that don't allow a zero date (see #605).
6+
37
## v0.3.1.22
48

59
- Use `nullableTimestamps` instead of `timestamps` in installer, to prevent conflict with MySQL modes 'NO_ZERO_IN_DATE' and 'NO_ZERO_DATE'.

userfrosting/initialize.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
'guest_theme' => 'default',
159159
'minify_css' => '0',
160160
'minify_js' => '0',
161-
'version' => '0.3.1.22',
161+
'version' => '0.3.1.23',
162162
'author' => 'Alex Weissman',
163163
'show_terms_on_register' => '1',
164164
'site_location' => 'The State of Indiana'

userfrosting/models/database/Database.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ public static function install(){
274274
$table->increments('id');
275275
$table->integer('user_id')->unsigned();
276276
$table->string('event_type', 255)->comment('An identifier used to track the type of event.');
277-
$table->timestamp('occurred_at');
277+
$table->timestamp('occurred_at')->nullable();
278278
$table->text('description');
279279
$table->engine = 'InnoDB';
280280
$table->collation = 'utf8_unicode_ci';

0 commit comments

Comments
 (0)