Skip to content

Commit

Permalink
fix insert unique
Browse files Browse the repository at this point in the history
  • Loading branch information
Reknij committed Apr 11, 2024
1 parent c114bcd commit d6d77fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/public_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ impl PublicSystem {
id INTEGER PRIMARY KEY,
reserved INT NOT NULL DEFAULT 1
);
INSERT INTO public_table (id, reserved) VALUES (1, 1)",
INSERT OR IGNORE INTO public_table (id, reserved) VALUES (1, 1)",
)
.execute(&pool)
.await
Expand Down

0 comments on commit d6d77fd

Please sign in to comment.