Welcome Guest, Not a member yet? Register   Sign In
forge->addColumn
#3

@grimpirate, thanks for your suggestions. This led me down the right path. There was a logical error in my code.


PHP Code:
        $val = [
            'email' => [
                  'name'      => 'email_public',
                  'type'      => 'VARCHAR',
                  'constraint' => '128',
                  'DEFAULT'    => ' ',
                  'null'      => 'false',
            ],
        ]; 

Note the:  'email' => [

My code was not generating the array inside the array. It was at the top level only, the 'email' level was missing. This is why it was not working. It was making this:

PHP Code:
        $val = [
             'name'      => 'email_public',
             'type'      => 'VARCHAR',
             'constraint' => '128',
             'DEFAULT'    => ' ',
             'null'      => 'false',
        ];
  

I have updated my structure to generate the correct format and all is well.

I am now fully working. How I missed that yesterday is a mystery.

Thanks for your help, it is appreciated.

C
Reply


Messages In This Thread
forge->addColumn - by Chroma - Yesterday, 10:24 AM
RE: forge->addColumn - by grimpirate - Yesterday, 12:07 PM
RE: forge->addColumn - by Chroma - Today, 12:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB