Skip to content

Commit

Permalink
int + autoincrement instead of serial
Browse files Browse the repository at this point in the history
  • Loading branch information
extreme4all committed Sep 23, 2023
1 parent 7b06214 commit 9383ddd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mysql/docker-entrypoint-initdb.d/01_tables.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
USE playerdata;

CREATE TABLE Players (
id SERIAL PRIMARY KEY,
id INT PRIMARY KEY AUTO_INCREMENT,
name TEXT,
created_at TIMESTAMP,
updated_at TIMESTAMP,
Expand Down Expand Up @@ -46,7 +46,7 @@ CREATE TABLE Reports (


CREATE TABLE Predictions (
id SERIAL PRIMARY KEY,
id INT PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(12),
prediction VARCHAR(50),
created TIMESTAMP,
Expand Down

0 comments on commit 9383ddd

Please sign in to comment.