Ticket #5 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Detect wrong database schema

Reported by: dom Owned by: dom
Priority: major Milestone:
Component: wiki-toolkit-plugin-categoriser Version:
Keywords: Cc:

Description

If I try to access an old-style database with Wiki::Toolkit in OpenGuides? I get:

DBD::mysql::db selectrow_array failed: Unknown column 'content.moderated' in 'field list' at /usr/share/perl5/Wiki/Toolkit/Store/Database.pm line 269.

Wiki::Toolkit should detect an old database and give us a friendly error message.

Change History

Changed 4 years ago by nick

Would you want a check when you new the Wiki::Toolkit database instance? It's a database hit we currently don't do, but hopefully not too big a performance hit.

We could easily check the schema version at this point, and bail out if it's not ours.

Changed 4 years ago by dom

  • milestone set to 0.70

Changed 4 years ago by dom

  • status changed from new to closed
  • resolution set to fixed

(In [304]) Check for the schema version before trying to use the database (closes #5)

Changed 4 years ago by anonymous

  • priority changed from major to trivial
  • type changed from defect to enhancement
  • version changed from svn to 2.0
  • component changed from wiki-toolkit to wiki-toolkit-plugin-diff
  • milestone 0.70 deleted

Changed 4 years ago by anonymous

  • priority changed from trivial to major
  • type changed from enhancement to defect
  • version 2.0 deleted
  • component changed from wiki-toolkit-plugin-diff to wiki-toolkit-plugin-categoriser
Note: See TracTickets for help on using tickets.