Skip to content

Commit

Permalink
SITES-898: Check for db_field_exists first (#188)
Browse files Browse the repository at this point in the history
* SITES-898: Check for db_field_exists first

SITES-898: Check for existence of db_field 'guuid' during the upgrade.

* fixup! Lumbergh

* fixup! CC
  • Loading branch information
sherakama authored and jbickar committed Sep 10, 2018
1 parent 99eb22e commit b2d61c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stanford_capx.install
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,9 @@ function stanford_capx_update_7200() {
'default' => '',
);

db_add_field($table, $field, $spec);
if (!db_field_exists($table, $field)) {
db_add_field($table, $field, $spec);
}

}

Expand Down

0 comments on commit b2d61c7

Please sign in to comment.