Skip to content

Commit

Permalink
fix: remove duplicate definition
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Jul 10, 2024
1 parent 9eb5bd2 commit 13991bd
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/helpers/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -179,16 +179,3 @@ CREATE TABLE leaderboard (
INDEX proposal_count (proposal_count),
INDEX last_vote (last_vote)
);

CREATE TABLE leaderboard (
user VARCHAR(64) NOT NULL,
space VARCHAR(64) NOT NULL,
vote_count SMALLINT UNSIGNED NOT NULL DEFAULT '0',
proposal_count SMALLINT UNSIGNED NOT NULL DEFAULT '0',
last_vote BIGINT,
PRIMARY KEY user_space (user,space),
INDEX space (space),
INDEX vote_count (vote_count),
INDEX proposal_count (proposal_count),
INDEX last_vote (last_vote)
);

0 comments on commit 13991bd

Please sign in to comment.