mirror of
https://github.com/project-gauntlet/gauntlet.git
synced 2025-12-23 10:35:53 +00:00
Fix foreign key in primary keys of frecency table blocking other operations
This commit is contained in:
parent
af2f00c670
commit
cba4a78cae
1 changed files with 14 additions and 0 deletions
14
rust/server/db_migrations/10_frecency_fix_primary_keys.sql
Normal file
14
rust/server/db_migrations/10_frecency_fix_primary_keys.sql
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
DROP TABLE plugin_entrypoint_frecency_stats;
|
||||
CREATE TABLE plugin_entrypoint_frecency_stats
|
||||
(
|
||||
entrypoint_id TEXT NOT NULL,
|
||||
plugin_id TEXT NOT NULL,
|
||||
|
||||
reference_time REAL NOT NULL,
|
||||
half_life REAL NOT NULL,
|
||||
last_accessed REAL NOT NULL,
|
||||
frecency REAL NOT NULL,
|
||||
num_accesses INTEGER NOT NULL,
|
||||
|
||||
PRIMARY KEY (entrypoint_id, plugin_id)
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue