rrd Posted September 14, 2016 Share Posted September 14, 2016 I have a modul, and I had to change an sql field. So I have created upgrade-0.0.9.php file in which I run a SQL statement to change a filed from text to mediumtext. Now, if a user has already installed any previous versions, his database table will be upgraded. It is OK. What about those users who will install 0.0.9 (or later) version first? Will the upgrade script run for them, or I should change my install.php accordingly? Link to comment Share on other sites More sharing options...
bellini13 Posted September 18, 2016 Share Posted September 18, 2016 you should also change the install.php file (or which ever file creates the table in the first place). the upgrade script will only run if a user already has the module installed, and that version is less than 0.0.9 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now