Closed DavidBruchmann closed 7 years ago
Das korrekte SQL für die Tabelle sieht so aus:
CREATE TABLE `rex_ycom_user` (
`id` int(11) NOT NULL,
`login` text NOT NULL,
`email` text NOT NULL,
`status` text NOT NULL,
`firstname` text NOT NULL,
`name` text NOT NULL,
`activation_key` text NOT NULL,
`session_key` text NOT NULL,
`last_action_time` varchar(255) NOT NULL,
`last_login_time` text NOT NULL,
`ycom_groups` text NOT NULL,
`password` varchar(255) NOT NULL,
`pic` text NOT NULL,
`slogan` text NOT NULL,
`login_tries` int(2) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Indizes der exportierten Tabellen
--
--
-- Indizes für die Tabelle `rex_ycom_user`
--
ALTER TABLE `rex_ycom_user`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT für exportierte Tabellen
--
--
-- AUTO_INCREMENT für Tabelle `rex_ycom_user`
--
ALTER TABLE `rex_ycom_user`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
COMMIT;
PR in #18
Beim Ändern eines Passworts im BE erhalte ich folgende Meldung:
Error while executing statement using params {"login":"wanda@hendrix.de","email":"wanda@hendrix.de","status":"1","firstname":"Wanda","name":"Hendrix","last_action_time":"2017-09-12","ycom_groups":"1","pic":"profile_pic2.jpg","slogan":"Der fr\u00fche Vogel f\u00e4ngt den Wurm. Aber lohnt es sich, daf\u00fcr aufzustehen?","activation_key":"c450da889959191a30834984420c8910","session_key":"cd77aa63985760875dc4a90c2923d9ac","last_login_time":"1463854961","login_tries":0,"password":"$2y$10$aNyx9ospK54g0u.EHryxB.3ZVOIqR2W6cGzFIpFJSfzZ4\/xIw.o12"}! SQLSTATE[42S22]: Column not found: 1054 Unknown column 'login_tries' in 'field list'
Das Feld fehlt im SQL der Demo.