database-neutral table creation
This commit is contained in:
parent
9ca5fcd51a
commit
b0bec98243
@ -14,14 +14,14 @@ class LogDatabase extends SimpleExtension {
|
|||||||
if($config->get_int("ext_log_database_version") < 1) {
|
if($config->get_int("ext_log_database_version") < 1) {
|
||||||
$database->create_table("score_log", "
|
$database->create_table("score_log", "
|
||||||
id SCORE_AIPK,
|
id SCORE_AIPK,
|
||||||
date_sent DATETIME NOT NULL,
|
date_sent SCORE_DATETIME NOT NULL,
|
||||||
section VARCHAR(32) NOT NULL,
|
section VARCHAR(32) NOT NULL,
|
||||||
username VARCHAR(32) NOT NULL,
|
username VARCHAR(32) NOT NULL,
|
||||||
address SCORE_INET NOT NULL,
|
address SCORE_INET NOT NULL,
|
||||||
priority INT NOT NULL,
|
priority INT NOT NULL,
|
||||||
message TEXT NOT NULL,
|
message TEXT NOT NULL
|
||||||
INDEX(section)
|
|
||||||
");
|
");
|
||||||
|
//INDEX(section)
|
||||||
$config->set_int("ext_log_database_version", 1);
|
$config->set_int("ext_log_database_version", 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user