-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This PR implements the following cleanup operations: - Adds four new columns to the `events` table: - `activity_id`: taken from the `activity_events` table - `activity_flow_id`: taken from the `flow_events` table - `user_id`: taken from the `user_events` table - `event_type`: Enum with value `activity` or `flow` - Removes the `periodicity_id` column from the `events` table - Migrates all the data from the `activity_events`, `flow_events`, and `user_events` tables into the `events` table - Drops the `activity_events`, `flow_events`, `user_events`, and `periodicity` tables - Updates the API code to account for these changes, which mostly included rewriting queries to select only from the `events` table where multiple joins (and sometimes multiple queries) were previously being done These changes are intended to be 100% backwards compatible and should introduce no new features from the client perspective
- Loading branch information
1 parent
734bd1f
commit 11571c7
Showing
10 changed files
with
514 additions
and
906 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.