garnas / einrad.hockey

Die Webseite der Deutschen Einradhockeyliga
1 stars 4 forks source link

Abstimmung #31

Closed Largofin closed 3 years ago

Largofin commented 3 years ago

Folgende Aspekte müssen/sollten nochmal angepasst werden

Largofin commented 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);

Largofin commented 3 years ago

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;

Largofin commented 3 years ago

Ist durch Ansgar fertiggestellt worden und bereits in der Nutzung