Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade script from v3 to v3.1 #113

Open
abhishekdelta opened this issue May 8, 2012 · 0 comments
Open

Upgrade script from v3 to v3.1 #113

abhishekdelta opened this issue May 8, 2012 · 0 comments

Comments

@abhishekdelta
Copy link
Member

A script that will upgrade an existing Pragyan CMS v3.0 website to Pragyan CMS v3.1. During installation of Pragyan CMS v3.1, there should be an option of whether the user wants to "UPGRADE from v3.0" or "Fresh Install". Incase of Fresh Install, the normal procedure is adopted. In case the user choses UPGRADE, then the user should give information about the database of old v3.0 website. Then the upgrade script will come into action and instead of creating new tables and values, the existing v3.0 database is converted into v3.1 so that the v3.1 cms files can work with them.

It should basically compare the databases of v3.0 and v3.1. The v3.0 table structure should be converted into v3.1 table structure. For new columns in v3.1 that aren't there in v3.0, a default value should be inserted that doesn't conflict with the table properties. Also new tables which are missing in v3.0 have to be created and appropriately populated with values which may be linked to values in some existing table.

After the database changes are done, the normal installation is done, with the only exception being that no new database and tables were created. And when the new website runs, it will already have the pages and modules that existed in v3.0 old version.

This requires knowledge about all the changes in database which have been done between v3.0 and v3.1. Also whenever, a new database change is done for any new feature, then the upgrade script should be appropriated modified. And the same script should be extendible for other upgrade versions.

@ghost ghost assigned abhishekdelta May 8, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant