Skip to content

Commit

Permalink
Delete from user_id 6 in stress.php.
Browse files Browse the repository at this point in the history
See issue #4.
  • Loading branch information
magical committed Mar 10, 2016
1 parent 5a85100 commit 5e515d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stress.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ function random_place() {
$q = $db->query("SELECT max(id) FROM courses"); $max_course_id = $q->fetch()[0];

// Remove old random rows
$db->query("DELETE FROM user_courses WHERE user_id > 8");
$db->query("DELETE FROM group_members WHERE user_id > 8");
$db->query("DELETE FROM user_courses WHERE user_id > 6");
$db->query("DELETE FROM group_members WHERE user_id > 6");
$db->query("DELETE FROM groups WHERE id > 3");
$db->query("DELETE FROM users WHERE id > 8");
$db->query("DELETE FROM users WHERE id > 6");

// Create N random users
$userids = array();
Expand Down

0 comments on commit 5e515d5

Please sign in to comment.