We need to truncate subscribers

This commit is contained in:
James Brooks
2015-11-21 23:19:00 +00:00
parent f814d13a64
commit 58e00d9fe2

View File

@@ -17,6 +17,7 @@ use CachetHQ\Cachet\Models\Incident;
use CachetHQ\Cachet\Models\Metric;
use CachetHQ\Cachet\Models\MetricPoint;
use CachetHQ\Cachet\Models\Setting;
use CachetHQ\Cachet\Models\Subscriber;
use CachetHQ\Cachet\Models\User;
use DateInterval;
use DateTime;
@@ -64,6 +65,7 @@ class DemoSeederCommand extends Command
$this->seedMetricPoints();
$this->seedMetrics();
$this->seedSettings();
$this->seedSubscribers();
$this->seedUsers();
$this->info('Database seeded with demo data successfully!');
@@ -293,6 +295,16 @@ class DemoSeederCommand extends Command
}
}
/**
* Seed the subscribers.
*
* @return void
*/
protected function seedSubscribers()
{
Subscriber::truncate();
}
/**
* Seed the users table.
*