Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 1892

Extension Writers Discussion • Re: Migration Code Problem

$
0
0
Thank you rxu for the guidance and link, I'll work on that right away.

Eidt: 2 hours later, and I couldn't figure that out or even get close to it. I'm not much of a programmer.
And I could not find an example out there where someone has used update_data to change the value in a users column.

I was thinking I could do a work around all of that and use the update_schema to replace that column.

Code:

public function update_schema(){return array('drop_columns'=> array($this->table_prefix . 'users'=> array('user_dark_style',),),'add_columns'=> array($this->table_prefix . 'users'=> array('user_dark_style'=> array('BOOL', 1),),),);}
I'm sure I have some programmers out there shanking their heads at me... like Image what is he doing?
Hey, a simple mind has to take the simple road. Image

Statistics: Posted by Sniper_E — Tue Mar 11, 2025 6:05 am



Viewing all articles
Browse latest Browse all 1892

Trending Articles