migration: 20180419133825_user_oauth_ids.php
This commit is contained in:
parent
72713308c4
commit
481c6c206e
1 changed files with 22 additions and 0 deletions
22
app/migrations/20180419133825_user_oauth_ids.php
Normal file
22
app/migrations/20180419133825_user_oauth_ids.php
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
use Phinx\Migration\AbstractMigration;
|
||||||
|
|
||||||
|
class UserOauthIds extends AbstractMigration
|
||||||
|
{
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
$this->table('user')
|
||||||
|
->addColumn('gitlab_id', 'integer', [
|
||||||
|
'limit' => 14,
|
||||||
|
'null' => true,
|
||||||
|
'after' => 'github_user'
|
||||||
|
])
|
||||||
|
->addColumn('google_id', 'integer', [
|
||||||
|
'limit' => 21,
|
||||||
|
'null' => true,
|
||||||
|
'after' => 'gitlab_id'
|
||||||
|
])->save();
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in a new issue