Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update fresh_install.sql #519

Merged
merged 1 commit into from
Sep 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions scripts/mysql-files/fresh_install.sql
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ CREATE TABLE IF NOT EXISTS ck_bonus (
`velEndZ` SMALLINT(6) NOT NULL DEFAULT 0,
`zonegroup` INT(12) NOT NULL DEFAULT 1,
`style` INT(11) NOT NULL DEFAULT 0,
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,-
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY(`steamid`, `mapname`, `zonegroup`, `style`))
DEFAULT CHARSET=utf8mb4;

Expand All @@ -35,11 +35,10 @@ CREATE TABLE IF NOT EXISTS ck_checkpoints (
`mapname` VARCHAR(32),
`cp` int NOT NULL DEFAULT '0',
`time` decimal(12,6) NOT NULL DEFAULT '0.000000',
`zonegroup` int NOT NULL DEFAULT '0',
`stage_time` decimal(12,6) NOT NULL DEFAULT '-1.000000',
`stage_attempts` int NOT NULL DEFAULT '0',
`zonegroup` INT(12) NOT NULL DEFAULT 0,
PRIMARY KEY(`steamid`, `mapname`, `cp`, `zonegroup`))
PRIMARY KEY(`steamid`, `mapname`, `cp`, `zonegroup`))
DEFAULT CHARSET=utf8mb4;

CREATE TABLE IF NOT EXISTS ck_latestrecords (
Expand All @@ -48,7 +47,7 @@ CREATE TABLE IF NOT EXISTS ck_latestrecords (
`runtime` decimal(12,6) NOT NULL DEFAULT '-1.000000',
`map` VARCHAR(32),
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY(`steamid`, `map`, `date`))
PRIMARY KEY(`steamid`, `map`, `date`))
DEFAULT CHARSET=utf8mb4;

CREATE TABLE IF NOT EXISTS ck_maptier (
Expand Down Expand Up @@ -248,4 +247,4 @@ CREATE TABLE IF NOT EXISTS ck_prinfo (
`PRattempts` FLOAT NOT NULL DEFAULT '0.0',
`PRstcomplete` FLOAT NOT NULL DEFAULT '0.0',
PRIMARY KEY(`steamid`, `mapname`, `zonegroup`))
DEFAULT CHARSET=utf8mb4;
DEFAULT CHARSET=utf8mb4;