10 public function up() {
12 if ($this->hasTable(
'metadata')) {
13 $table = $this->table(
'metadata');
15 if (
$table->hasIndexByName(
'owner_guid')) {
16 $table->removeIndexByName(
'owner_guid')->save();
18 if (
$table->hasIndexByName(
'access_id')) {
19 $table->removeIndexByName(
'access_id')->save();
22 if (
$table->hasColumn(
'owner_guid')) {
23 $table->changeColumn(
'owner_guid',
'integer', [
'null' =>
true]);
25 if (
$table->hasColumn(
'access_id')) {
26 $table->changeColumn(
'access_id',
'integer', [
'null' =>
true]);