Post by miketramontano » Fri Feb 06, 2015 1:50 am

What's the best way to "bake in" a database change that is required for a pull request.

Specifically, I'm considering issuing a pull request for more secure password hashing, but it requires more than the allotted varchar(40) for the password (customer, affiliate, user) fields. Of course I can also modify the installation sql file, but that won't help people who upgrade an existing install.

Did some quick searching but couldn't find the recommended way to do this.


Posts

Joined
Tue Jul 08, 2014 12:01 am

Post by RuslanBrest » Sat Feb 07, 2015 7:02 pm

This should be done via migrations. bot Opencart doesn't use this.
You should modify at least `install/opencart.sql` for new installs and check `install/{controller,model}/upgrade.php`.

OCJ: OpencartJazz.com
http://rb.labtodo.com/category/opencart (lang: ru)


New member

Posts

Joined
Sat Nov 12, 2011 3:19 pm

Who is online

Users browsing this forum: No registered users and 5 guests