Skip to content
Discussion options

You must be logged in to vote

Hi @l-vanel,
Thank you for registering your question again in this section.

  1. Create a migration file in path app\Database\Migrations\AddCustomColumnForUser with the following content:
<?phpnamespaceApp\Database\Migrations;
useCodeIgniter\Database\Migration;
// Add custom column for shieldclass AddCustomColumnForUser extends Migration
{
publicfunctionup()
{
$fields = [
"gender SET('male', 'female', 'bisexual') NULL DEFAULT NULL COMMENT 'gender user'",
'first_name' => [
'type' => 'text',
'constraint' => '50',
'null' => TRUE
],
'last_name' => [
…

Replies: 4 comments 15 replies

Comment options

You must be logged in to vote
9 replies
@solomon-ochepa
Comment options

@kenjis
Comment options

kenjisJul 14, 2023
Maintainer

@kenjis
Comment options

kenjisJul 14, 2023
Maintainer

@CalebArbeau
Comment options

@datamweb
Comment options

Answer selected byl-vanel
Comment options

You must be logged in to vote
4 replies
@datamweb
Comment options

@l-vanel
Comment options

@datamweb
Comment options

@datamweb
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@datamweb
Comment options

@l-vanel
Comment options

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
@l-vanel@kenjis@datamweb@CalebArbeau@solomon-ochepa