diff options
Diffstat (limited to 'crates/server/migrations')
| -rw-r--r-- | crates/server/migrations/0002_test_results.sql | 8 | ||||
| -rw-r--r-- | crates/server/migrations/0005_fairness.sql | 2 | ||||
| -rw-r--r-- | crates/server/migrations/0009_bot_players.sql | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/crates/server/migrations/0002_test_results.sql b/crates/server/migrations/0002_test_results.sql index aa876b5..2a4cf69 100644 --- a/crates/server/migrations/0002_test_results.sql +++ b/crates/server/migrations/0002_test_results.sql @@ -2,10 +2,10 @@ CREATE TABLE test_results ( id TEXT PRIMARY KEY, user_id TEXT NOT NULL REFERENCES users(id) ON DELETE CASCADE, mode_key TEXT NOT NULL, - wpm REAL NOT NULL, - raw_wpm REAL NOT NULL, - accuracy REAL NOT NULL, - time_seconds REAL NOT NULL, + wpm DOUBLE PRECISION NOT NULL, + raw_wpm DOUBLE PRECISION NOT NULL, + accuracy DOUBLE PRECISION NOT NULL, + time_seconds DOUBLE PRECISION NOT NULL, created_at TEXT NOT NULL ); diff --git a/crates/server/migrations/0005_fairness.sql b/crates/server/migrations/0005_fairness.sql index 28152d6..6d55b52 100644 --- a/crates/server/migrations/0005_fairness.sql +++ b/crates/server/migrations/0005_fairness.sql @@ -1,2 +1,2 @@ ALTER TABLE test_results ADD COLUMN device_type TEXT NOT NULL DEFAULT 'desktop'; -ALTER TABLE test_results ADD COLUMN flagged INTEGER NOT NULL DEFAULT 0; +ALTER TABLE test_results ADD COLUMN flagged BOOLEAN NOT NULL DEFAULT FALSE; diff --git a/crates/server/migrations/0009_bot_players.sql b/crates/server/migrations/0009_bot_players.sql index 790eb85..72516c5 100644 --- a/crates/server/migrations/0009_bot_players.sql +++ b/crates/server/migrations/0009_bot_players.sql @@ -3,6 +3,6 @@ - the same cosmetics. The flag exists so the client can label them, because a - board that mixes synthetic scores into human ones without saying so is - telling its users something untrue. -ALTER TABLE users ADD COLUMN is_bot INTEGER NOT NULL DEFAULT 0; +ALTER TABLE users ADD COLUMN is_bot BOOLEAN NOT NULL DEFAULT FALSE; CREATE INDEX idx_users_is_bot ON users(is_bot); |