Skip to content

Commit

Permalink
Merge pull request #2 from MujiSayed/fix/init_db
Browse files Browse the repository at this point in the history
fix: change compose depends on and add missing semicolan
  • Loading branch information
extreme4all authored Sep 25, 2023
2 parents 9383ddd + 8a997fb commit e5cb41f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ services:
- .env
depends_on:
- kafka_setup
- database
- mysql

networks:
botdetector-network:
botdetector-network:
8 changes: 4 additions & 4 deletions mysql/docker-entrypoint-initdb.d/02_data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ SELECT
NOW() - INTERVAL FLOOR(RAND() * 365) DAY AS created_at,
NOW() - INTERVAL FLOOR(RAND() * 365) DAY AS updated_at,
1 AS possible_ban,
0 AS confirmed_ban,
0 AS confirmed_player,
0 AS confirmed_ban,
0 AS confirmed_player,
0 AS label_id,
ROUND(RAND() * 1) AS label_jagex, -- Random label_jagex between 0 and 2 (inclusive)
null ironman,
Expand Down Expand Up @@ -64,7 +64,7 @@ FROM (
(SELECT 0 AS N UNION SELECT 1 UNION SELECT 2 UNION SELECT 3 UNION SELECT 4 UNION SELECT 5 UNION SELECT 6 UNION SELECT 7 UNION SELECT 8 UNION SELECT 9) AS a,
(SELECT 0 AS N UNION SELECT 1 UNION SELECT 2 UNION SELECT 3 UNION SELECT 4 UNION SELECT 5 UNION SELECT 6 UNION SELECT 7 UNION SELECT 8 UNION SELECT 9) AS b
) AS numbers

;
-- Insert data into the Reports table
INSERT INTO Reports (created_at, reportedID, reportingID, region_id, x_coord, y_coord, z_coord, timestamp, manual_detect, on_members_world, on_pvp_world, world_number, equip_head_id, equip_amulet_id, equip_torso_id, equip_legs_id, equip_boots_id, equip_cape_id, equip_hands_id, equip_weapon_id, equip_shield_id, equip_ge_value)
SELECT
Expand Down Expand Up @@ -99,4 +99,4 @@ ORDER BY
RAND() -- Randomize the order of the combinations
LIMIT
10000 -- Limit the number of combinations to insert
;
;

0 comments on commit e5cb41f

Please sign in to comment.