mirror of
https://github.com/Wolvan/poll.horse.git
synced 2024-11-25 06:07:58 +01:00
Remove unecessary ID column
The strings are unique and do that job just fine.
This commit is contained in:
parent
ce2601642b
commit
5260cfb7da
1 changed files with 1 additions and 2 deletions
|
@ -26,8 +26,7 @@ export default class MySQLStorage extends Storage {
|
||||||
async init(): Promise<this> {
|
async init(): Promise<this> {
|
||||||
await this.#db.promise().query(`
|
await this.#db.promise().query(`
|
||||||
CREATE TABLE IF NOT EXISTS polls (
|
CREATE TABLE IF NOT EXISTS polls (
|
||||||
id INT AUTO_INCREMENT PRIMARY KEY,
|
id_str VARCHAR(32) NOT NULL PRIMARY KEY,
|
||||||
id_str VARCHAR(32) NOT NULL UNIQUE,
|
|
||||||
title VARCHAR(${MAX_CHARACTER_LENGTH}) NOT NULL DEFAULT '',
|
title VARCHAR(${MAX_CHARACTER_LENGTH}) NOT NULL DEFAULT '',
|
||||||
dupe_check_mode ENUM('none', 'ip', 'cookie') NOT NULL DEFAULT 'ip',
|
dupe_check_mode ENUM('none', 'ip', 'cookie') NOT NULL DEFAULT 'ip',
|
||||||
multi_select TINYINT(1) NOT NULL DEFAULT 0,
|
multi_select TINYINT(1) NOT NULL DEFAULT 0,
|
||||||
|
|
Loading…
Reference in a new issue