THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- Change contextInitialized() so that it initializes only the UI portions of Roller
- Move RollerImpl initialization into RollerImpl classes
- Change contextInitialized() so that it does not throw exceptions
- We want context to load regardless of Roller configuration
Change #5:
...
Change PersistenceSessionFilter to check database configuration
- If DB connection fails
- If installation.auto, show error page to explain what went wrong and how to fix it
- Else, show simple error/maintenance page
- If DB does not have tables
- If installation.auto, show table creation page/action
- Else, show simple error/maintenance page
- If DB is older version
- If installation.auto, show database upgrade page/action
- Run database upgrade scripts and do upgradeDatabaseIfNeeded logic
- Else, show simple error/maintenance page
Change #6: Database creation/upgrade infrastructors
- SQLScriptRunner: runs SQL scripts, saves messages
- DatabaseCreator: creates Roller database tables, saves messages
- DatabaseUpgrader: upgrades Roller database tables, saves messages
Change #7: Database error page/action
- DatabaseError.jsp
- DatabaseError.java
Change #8: Table creation page/action
- CreateDatabase.java
- CreateDatabase.jsp
- Tell user that tables need to be created, offer to create them
- Create tables, show user output from running creation script
- Ask user to redeploy or restart server
Change
...
#9: Table upgrade page/action
- UpgradeDatabase.java
- UpgradeDatabase.jsp
- Tell user that tables need to be updated, offer to upgrade them
- Upgrade tables, show user output from running upgrade script
- Ask user to redeploy or restart server
Comments
Please comment on the dev mailing-list.