Seite 1 von 1

SQL Befehl---anderer prefix

Verfasst: 02.07.2007 13:31
von Giga-Tronic
Hi

ich bin gerad dabei einem Typen nen Mod im Forum zu installieren.

Alles Okay..bis auf die SQL Befehle...

Da steht

Code: Alles auswählen

ALTER TABLE phpbb_users ADD user_birthday INT DEFAULT '999999' not null;
ALTER TABLE phpbb_users ADD user_next_birthday_greeting INT DEFAULT '0' not null;
INSERT INTO phpbb_config (config_name, config_value) VALUES ('birthday_required', '0');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('birthday_greeting', '1');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_user_age', '100');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('min_user_age', '5');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('birthday_check_day', '7');
Auführen-->Fehler:

Code: Alles auswählen

SQL-Befehl:

ALTER TABLE phpbb_users ADD user_birthday INT DEFAULT '999999' NOT NULL ;

MySQL meldet: Dokumentation
#1146 - Table 'db_1.phpbb_users' doesn't exist 

Nun seh ich in der config.php, dass der Table Prefix so lautet

Code: Alles auswählen

$table_prefix = 'phpbb_foruum';
Nun meine Frage: Wie passe ich diese SQL Befehle dem jetzoigen Prefix an? Oder: Warum geht das net?


Gruß

Andi

Verfasst: 02.07.2007 13:38
von Mahony
Hallo
Passe einfach den Prefix entsprechend an.

Also so:

Code: Alles auswählen

ALTER TABLE phpbb_foruumusers ADD user_birthday INT DEFAULT '999999' not null;
ALTER TABLE phpbb_foruumusers ADD user_next_birthday_greeting INT DEFAULT '0' not null;
INSERT INTO phpbb_foruumconfig (config_name, config_value) VALUES ('birthday_required', '0');
INSERT INTO phpbb_foruumconfig (config_name, config_value) VALUES ('birthday_greeting', '1');
INSERT INTO phpbb_foruumconfig (config_name, config_value) VALUES ('max_user_age', '100');
INSERT INTO phpbb_foruumconfig (config_name, config_value) VALUES ('min_user_age', '5');
INSERT INTO phpbb_foruumconfig (config_name, config_value) VALUES ('birthday_check_day', '7');



Grüße: Mahony