Skip to content

Commit 58e00d9

Browse files
committed
We need to truncate subscribers
1 parent f814d13 commit 58e00d9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

app/Console/Commands/DemoSeederCommand.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use CachetHQ\Cachet\Models\Metric;
1818
use CachetHQ\Cachet\Models\MetricPoint;
1919
use CachetHQ\Cachet\Models\Setting;
20+
use CachetHQ\Cachet\Models\Subscriber;
2021
use CachetHQ\Cachet\Models\User;
2122
use DateInterval;
2223
use DateTime;
@@ -64,6 +65,7 @@ public function fire()
6465
$this->seedMetricPoints();
6566
$this->seedMetrics();
6667
$this->seedSettings();
68+
$this->seedSubscribers();
6769
$this->seedUsers();
6870

6971
$this->info('Database seeded with demo data successfully!');
@@ -293,6 +295,16 @@ protected function seedSettings()
293295
}
294296
}
295297

298+
/**
299+
* Seed the subscribers.
300+
*
301+
* @return void
302+
*/
303+
protected function seedSubscribers()
304+
{
305+
Subscriber::truncate();
306+
}
307+
296308
/**
297309
* Seed the users table.
298310
*

0 commit comments

Comments
 (0)