I have a Toggle Dark Style extension created but I'm having a problem getting the migration file to work.I have tried everything I could, except the right thing. I've referenced a dozen other extensions for an example, but no luck.
- In the phpbb_users table, I have all the user_dark_style values set to 0 on all users.
- When this extension is enabled I'm trying to get it to change that 0 to 1 on all users.
- I'm hoping someone can point out exactly what I'm doing wrong in these codes below.
Code:
namespace sniper\toggledark\migrations;class toggledark_schema extends \phpbb\db\migration\migration{public static function depends_on(){return [ '\phpbb\db\migration\data\v33x\v331' ];}public function update_schema(){return array('update_columns'=> array($this->table_prefix . 'users'=> array('user_dark_style' => array('BOOL', 1),),),);}}
Statistics: Posted by Sniper_E — Tue Mar 11, 2025 5:17 am