Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F585474
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
657 B
Referenced Files
None
Subscribers
None
View Options
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
Details
Attached
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)
Attached To
Mode
rMW mediawiki
Attached
Detach File
Event Timeline
Log In to Comment