Page MenuHomePhorge

No OneTemporary

Size
657 B
Referenced Files
None
Subscribers
None
diff --git a/includes/installer/PostgresUpdater.php b/includes/installer/PostgresUpdater.php
index adf2a624ec2..23728a6d402 100644
--- a/includes/installer/PostgresUpdater.php
+++ b/includes/installer/PostgresUpdater.php
@@ -777,7 +777,7 @@ END;
*/
protected function dropDefault( $table, $field ) {
$info = $this->db->fieldInfo( $table, $field );
- if ( $info->defaultValue() !== false ) {
+ if ( $info && $info->defaultValue() !== false ) {
$this->output( "Removing '$table.$field' default value\n" );
$table = $this->db->addIdentifierQuotes( $table );
$this->db->query( "ALTER TABLE $table ALTER $field DROP DEFAULT", __METHOD__ );

File Metadata

Mime Type
text/x-diff
Expires
Sat, Jul 5, 5:33 AM (1 d, 4 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
227877
Default Alt Text
(657 B)

Event Timeline