lib/Migration/Version0017Date20191206144441.php 1 location
|
@@ 120-129 (lines=10) @@
|
| 117 |
|
] |
| 118 |
|
); |
| 119 |
|
} |
| 120 |
|
if (!$table->hasColumn('contact_id')) { |
| 121 |
|
$table->addColumn( |
| 122 |
|
'contact_id', 'string', [ |
| 123 |
|
'notnull' => false, |
| 124 |
|
'length' => 127, |
| 125 |
|
] |
| 126 |
|
); |
| 127 |
|
$table->dropPrimaryKey(); |
| 128 |
|
$table->setPrimaryKey(['circle_id', 'user_id', 'contact_id']); |
| 129 |
|
} |
| 130 |
|
|
| 131 |
|
$table = $schema->getTable('circles_tokens'); |
| 132 |
|
if (!$table->hasColumn('member_id')) { |
lib/Migration/Version0017Date20191210153032.php 1 location
|
@@ 63-72 (lines=10) @@
|
| 60 |
|
$schema = $schemaClosure(); |
| 61 |
|
|
| 62 |
|
$table = $schema->getTable('circles_members'); |
| 63 |
|
if (!$table->hasColumn('instance')) { |
| 64 |
|
$table->addColumn( |
| 65 |
|
'instance', 'string', [ |
| 66 |
|
'notnull' => false, |
| 67 |
|
'length' => 255, |
| 68 |
|
] |
| 69 |
|
); |
| 70 |
|
$table->dropPrimaryKey(); |
| 71 |
|
$table->setPrimaryKey(['circle_id', 'user_id', 'user_type', 'instance']); |
| 72 |
|
} |
| 73 |
|
|
| 74 |
|
if (!$schema->hasTable('circles_gsevents')) { |
| 75 |
|
$table = $schema->createTable('circles_gsevents'); |