Closed Largofin closed 3 years ago
Für die Datenbank werden neue Tabelle benötigt. Diese sind:
CREATE TABLE abstimmung_ergebnisse (id smallint(6) NOT NULL, value enum('sommerpause','winterpause') NOT NULL);
ALTER TABLE abstimmung_ergebnisse ADD PRIMARY KEY (id);
ALTER TABLE abstimmung_ergebnisse MODIFY id smallint(6) NOT NULL AUTO_INCREMENT;
ALTER TABLE abstimmung_ergebnisse CHANGE value value VARCHAR(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL;
CREATE TABLE abstimmung_teams (team_id int(11) NOT NULL, value tinyint(1) NOT NULL DEFAULT 1);
ALTER TABLE abstimmung_teams ADD PRIMARY KEY(team_id);
ALTER TABLE abstimmung_teams ADD FOREIGN KEY(team_id) REFERENCES teams_liga(team_id);
Es gibt einen weiteren Branch, auf dem eine Durchführung mit openssl_encrypt ist. Dafür wird folgende Datenbank-Tabelle benötigt:
CREATE TABLE abstimmung (id smallint(6) NOT NULL, value VARCHAR(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, crypt VARCHAR(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL);
ALTER TABLE abstimmung ADD PRIMARY KEY(id);
ALTER TABLE abstimmung CHANGE id id SMALLINT(6) NOT NULL AUTO_INCREMENT;
Ist durch Ansgar fertiggestellt worden und bereits in der Nutzung
Folgende Aspekte müssen/sollten nochmal angepasst werden