Archived
1
0
Fork 0
This repository has been archived on 2026-04-03. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
httpcb/app/migrations/20180330090144_user_fields.php

30 lines
707 B
PHP

<?php
use Phinx\Migration\AbstractMigration;
class UserFields extends AbstractMigration
{
/**
* Add regdate column
*/
public function up()
{
$this->table('user')
->addColumn('name', 'string', [
'limit' => 128,
'null' => true,
'after' => 'username'
])
->addColumn('github_id', 'integer', [
'limit' => 14,
'null' => true,
'after' => 'password'
])
->addColumn('github_user', 'string', [
'limit' => 80,
'null' => true,
'after' => 'github_id'
])->save();
}
}