Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • 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 - READY TO COMMIT

This logic is executed ONLY if auto-install is enabled.

  • 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

...

infrastructure - READY TO COMMIT

  • 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 - READY TO COMMIT

  • DatabaseError.jsp
  • DatabaseError.java

...

If connection cannot be made for some reason, this is what you'll see:


Change #8: Table creation page/action - READY TO COMMIT

  • 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

...

After tables are created:


Change #9: Table upgrade page/action - READY TO COMMIT

  • 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

...