Skip to content

Commit b42e072

Browse files
authored
Update create_xhprof_table.php.stub
fixed #3
1 parent 08e1d80 commit b42e072

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/migrations/create_xhprof_table.php.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class CreateXHProfTable extends Migration
1818
$table->char('id', 64);
1919
$table->char('url', 255)->nullable();
2020
$table->char('c_url', 255)->nullable();
21-
$table->timestamp('timestamp')->default(DB::raw('CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP'));
21+
$table->timestamp('timestamp')->useCurrent()->useCurrentOnUpdate();
2222
$table->char('server name', 64)->nullable();
2323
$table->binary('perfdata')->nullable();
2424
$table->tinyInteger('type')->nullable();

0 commit comments

Comments
 (0)