fix: [conflict] resolved in user_org update script
parent
1ee895cedf
commit
b981b3f942
|
@ -18,7 +18,6 @@ final class UserOrg extends AbstractMigration
|
||||||
*/
|
*/
|
||||||
public function change(): void
|
public function change(): void
|
||||||
{
|
{
|
||||||
<<<<<<< HEAD
|
|
||||||
$exists = $this->table('users')->hasColumn('organisation_id');
|
$exists = $this->table('users')->hasColumn('organisation_id');
|
||||||
if (!$exists) {
|
if (!$exists) {
|
||||||
$this->table('users')
|
$this->table('users')
|
||||||
|
@ -31,17 +30,6 @@ final class UserOrg extends AbstractMigration
|
||||||
->addIndex('organisation_id')
|
->addIndex('organisation_id')
|
||||||
->update();
|
->update();
|
||||||
}
|
}
|
||||||
=======
|
|
||||||
$alignments = $this->table('users')
|
|
||||||
->addColumn('organisation_id', 'integer', [
|
|
||||||
'default' => null,
|
|
||||||
'null' => true,
|
|
||||||
'signed' => false,
|
|
||||||
'length' => 10
|
|
||||||
])
|
|
||||||
->addIndex('organisation_id')
|
|
||||||
->update();
|
|
||||||
>>>>>>> main
|
|
||||||
$q1 = $this->getQueryBuilder();
|
$q1 = $this->getQueryBuilder();
|
||||||
$org_id = $q1->select(['min(id)'])->from('organisations')->execute()->fetchAll()[0][0];
|
$org_id = $q1->select(['min(id)'])->from('organisations')->execute()->fetchAll()[0][0];
|
||||||
if (!empty($org_id)) {
|
if (!empty($org_id)) {
|
||||||
|
|
Loading…
Reference in New Issue