mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 13:33:18 +00:00
commit
3f41feab3a
2 changed files with 6 additions and 1 deletions
|
@ -40,6 +40,11 @@ class StatusDedupe extends Command
|
||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if(config('database.default') == 'pgsql') {
|
||||||
|
$this->info('This command is not compatible with Postgres, we are working on a fix.');
|
||||||
|
return;
|
||||||
|
}
|
||||||
DB::table('statuses')
|
DB::table('statuses')
|
||||||
->selectRaw('id, uri, count(uri) as occurences')
|
->selectRaw('id, uri, count(uri) as occurences')
|
||||||
->whereNull('deleted_at')
|
->whereNull('deleted_at')
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue