Commit f34c6279 authored by Francois Marier's avatar Francois Marier
Browse files

Add a note about MySQL/Postgres-specific code


Signed-off-by: default avatarFrancois Marier <francois@catalyst.net.nz>
parent 8cd05426
......@@ -50,6 +50,9 @@ class PluginBlocktypeExternalfeed extends SystemBlocktype {
else if (is_mysql()) {
execute_sql('ALTER TABLE {blocktype_externalfeed_data} ADD UNIQUE {blocextedata_url_uix} (url(255))');
}
else {
// TODO: support other databases
}
}
}
......
......@@ -1132,6 +1132,7 @@ function group_get_associated_groups($userid, $filter='all', $limit=20, $offset=
$adminsql = "CAST('admin' AS TEXT)";
$empty = "CAST('' AS TEXT)";
}
// TODO: make it work on other databases?
// Different filters join on the different kinds of association
if ($filter == 'admin') {
......
......@@ -388,7 +388,7 @@ function user_stats_table($limit, $offset) {
return $result;
}
$day = is_postgres() ? "to_date(t.ctime::text, 'YYYY-MM-DD')" : 'DATE(t.ctime)';
$day = is_postgres() ? "to_date(t.ctime::text, 'YYYY-MM-DD')" : 'DATE(t.ctime)'; // TODO: make work on other databases?
$daterange = get_record_sql(
"SELECT
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment