Skip to content

Commit

Permalink
Add index to history table
Browse files Browse the repository at this point in the history
  • Loading branch information
JayGreeeen committed Nov 22, 2024
1 parent 44f9928 commit 11d996d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ CREATE TABLE IF NOT EXISTS beekeeper_history (
housekeeping_status VARCHAR(50) NOT NULL,
event_details TEXT,
PRIMARY KEY (id)
);
);

ALTER TABLE beekeeper_history ADD INDEX `beekeeper_history_index_table_name_upper` ((upper(table_name)));
ALTER TABLE beekeeper_history ADD INDEX `beekeeper_history_index_status` (`housekeeping_status`);

0 comments on commit 11d996d

Please sign in to comment.