Skip to content

Commit

Permalink
Postgresql uses smallint instead of tinyint.
Browse files Browse the repository at this point in the history
  • Loading branch information
paca70 committed May 17, 2004
1 parent fed354f commit 05ba8bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/db/postgres7.php
Expand Up @@ -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)) {
Expand Down

0 comments on commit 05ba8bd

Please sign in to comment.