| @@ 96-103 (lines=8) @@ | ||
| 93 | } |
|
| 94 | ||
| 95 | $table = $schema->getTable('circles_members'); |
|
| 96 | if (!$table->hasColumn('member_id')) { |
|
| 97 | $table->addColumn( |
|
| 98 | 'member_id', Type::STRING, [ |
|
| 99 | 'notnull' => false, |
|
| 100 | 'length' => 15, |
|
| 101 | ] |
|
| 102 | ); |
|
| 103 | } |
|
| 104 | if (!$table->hasColumn('contact_meta')) { |
|
| 105 | $table->addColumn( |
|
| 106 | 'contact_meta', 'string', [ |
|
| @@ 112-119 (lines=8) @@ | ||
| 109 | ] |
|
| 110 | ); |
|
| 111 | } |
|
| 112 | if (!$table->hasColumn('contact_checked')) { |
|
| 113 | $table->addColumn( |
|
| 114 | 'contact_checked', Type::SMALLINT, [ |
|
| 115 | 'notnull' => false, |
|
| 116 | 'length' => 1, |
|
| 117 | ] |
|
| 118 | ); |
|
| 119 | } |
|
| 120 | if (!$table->hasColumn('contact_id')) { |
|
| 121 | $table->addColumn( |
|
| 122 | 'contact_id', 'string', [ |
|
| @@ 132-139 (lines=8) @@ | ||
| 129 | } |
|
| 130 | ||
| 131 | $table = $schema->getTable('circles_tokens'); |
|
| 132 | if (!$table->hasColumn('member_id')) { |
|
| 133 | $table->addColumn( |
|
| 134 | 'member_id', Type::STRING, [ |
|
| 135 | 'notnull' => false, |
|
| 136 | 'length' => 15, |
|
| 137 | ] |
|
| 138 | ); |
|
| 139 | } |
|
| 140 | if (!$table->hasColumn('accepted')) { |
|
| 141 | $table->addColumn( |
|
| 142 | 'accepted', Type::SMALLINT, [ |
|
| @@ 140-147 (lines=8) @@ | ||
| 137 | ] |
|
| 138 | ); |
|
| 139 | } |
|
| 140 | if (!$table->hasColumn('accepted')) { |
|
| 141 | $table->addColumn( |
|
| 142 | 'accepted', Type::SMALLINT, [ |
|
| 143 | 'notnull' => false, |
|
| 144 | 'length' => 1, |
|
| 145 | ] |
|
| 146 | ); |
|
| 147 | } |
|
| 148 | ||
| 149 | return $schema; |
|
| 150 | } |
|