Skip to content

Commit

Permalink
Use CREATE TABLE IF NOT EXISTS to not fail on second setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Jupeyy committed Jan 4, 2025
1 parent ee7e250 commit d711c49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion game/vanilla/src/sql/mysql/save/saves.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CREATE TABLE user_save (
CREATE TABLE IF NOT EXISTS user_save (
id BIGINT NOT NULL AUTO_INCREMENT,
user_id BIGINT,
user_hash BINARY(32),
Expand Down
2 changes: 1 addition & 1 deletion game/vanilla/src/sql/sqlite/save/saves.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CREATE TABLE user_save (
CREATE TABLE IF NOT EXISTS user_save (
id INTEGER AUTO_INCREMENT,
user_id INTEGER UNIQUE,
user_hash BINARY(32) UNIQUE,
Expand Down

0 comments on commit d711c49

Please sign in to comment.