Postgresql uses smallint instead of tinyint.

This commit is contained in:
paca70
2004-05-17 06:52:06 +00:00
parent fed354f2ba
commit 05ba8bd0d9
+1 -1
View File
@@ -495,7 +495,7 @@ function main_upgrade($oldversion=0) {
}
if ($oldversion < 2004050400) { /// add a visible field for events
table_column("event", "", "visible", "tinyint", "1", "", "1", "not null", "timeduration");
table_column("event", "", "visible", "smallint", "1", "", "1", "not null", "timeduration");
if ($events = get_records('event')) {
foreach($events as $event) {
if ($moduleid = get_field('modules', 'id', 'name', $event->modulename)) {