Skip to content

Commit

Permalink
Remove AUTO_INCREMENT
Browse files Browse the repository at this point in the history
  • Loading branch information
thehowl committed Apr 30, 2018
1 parent 475e716 commit 09b1427
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion migrations/1.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CREATE TABLE tournaments(
id BIGINT NOT NULL AUTO_INCREMENT,
id BIGINT NOT NULL,
name VARCHAR(60) NOT NULL,
description VARCHAR(250) NOT NULL,
mode TINYINT(1) NOT NULL,
Expand Down
2 changes: 1 addition & 1 deletion migrations/3.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ALTER TABLE tournaments ADD team_size TINYINT NOT NULL;

CREATE TABLE teams(
id BIGINT NOT NULL AUTO_INCREMENT,
id BIGINT NOT NULL,
name VARCHAR(25) NOT NULL,
tournament BIGINT NOT NULL,
captain INT NOT NULL,
Expand Down
2 changes: 1 addition & 1 deletion migrations/7.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CREATE TABLE feed_items(
id BIGINT NOT NULL AUTO_INCREMENT,
id BIGINT NOT NULL,
tournament BIGINT NOT NULL,
content TEXT NOT NULL,
author INT,
Expand Down
2 changes: 1 addition & 1 deletion migrations/8.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ALTER TABLE tournament_rules ADD PRIMARY KEY(id);

CREATE TABLE beatmap_requests(
id BIGINT NOT NULL AUTO_INCREMENT,
id BIGINT NOT NULL,
tournament BIGINT NOT NULL,
user INT NOT NULL,
beatmap INT NOT NULL,
Expand Down

0 comments on commit 09b1427

Please sign in to comment.