Skip to content

Commit 6a84bb0

Browse files
committed
Improve pgsql compat.
1 parent d0eacf0 commit 6a84bb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

database/migrations/2018_03_21_174309_update-paste-expiration.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ public function up()
1515
{
1616
Schema::table('pastes', function(Blueprint $table){
1717
$table->boolean('burnAfter');
18-
DB::statement('UPDATE pastes SET expiration = "1990-01-01 00:00:00" WHERE expiration IN ("expired", "10m", "1d", "1w", "1h", "burn");');
19-
DB::statement('UPDATE pastes SET expiration = "0" WHERE expiration = "never";');
18+
DB::statement("UPDATE pastes SET expiration = '1990-01-01 00:00:00' WHERE expiration IN ('expired', '10m', '1d', '1w', '1h', 'burn');");
19+
DB::statement("UPDATE pastes SET expiration = '0' WHERE expiration = 'never';");
2020
});
2121
}
2222

0 commit comments

Comments
 (0)