| 1 |
0.86 21 December 2020 |
| 2 |
Upgrade database schema to version 11 (text columns no longer have a |
| 3 |
default value, for compatibility with MySQL strict mode). To upgrade |
| 4 |
your existing databases to the new schema, run wiki-toolkit-setupdb. |
| 5 |
Use of schema version 10 and upgrades from this to newer versions |
| 6 |
will continue to be supported for any releases made before |
| 7 |
31 December 2021. |
| 8 |
Remove code for dealing with upgrades to database schema version 10 |
| 9 |
(which came in over a decade ago). PLEASE NOTE that if your schema |
| 10 |
version is older than 10 (see the schema_info table in your database) |
| 11 |
then you MUST upgrade to version 10 by running wiki-toolkit-setupdb |
| 12 |
BEFORE you install this version of Wiki::Toolkit. |
| 13 |
Fix an issue with MySQL locking of nodes with long names. |
| 14 |
|
| 15 |
0.85 16 December 2016 |
| 16 |
Make ->rename_node try to ensure a valid new node name (depending on |
| 17 |
formatter parameters). |
| 18 |
Add dependency on CGI which is no longer core (RT#118582) |
| 19 |
|
| 20 |
0.84 23 February 2014 |
| 21 |
Add new options to Lucy and Plucene backends: (1) content munging |
| 22 |
before search indexing, (2) total exclusion of certain nodes from |
| 23 |
search indexing. |
| 24 |
|
| 25 |
0.83 22 November 2013 |
| 26 |
Fix bug in Lucy backend (if you wrote a node Foo Bar and then one |
| 27 |
called Foo, it would delete Foo Bar from its index). |
| 28 |
Make Lucy backend capable of indexing metadata as well. |
| 29 |
Allow weighting of node title in Lucy search. |
| 30 |
|
| 31 |
0.82 12 October 2013 |
| 32 |
Fix uninitialised value warnings in Lucy backend |
| 33 |
|
| 34 |
0.81 25 May 2013 |
| 35 |
Fix compatibility with DBD::SQLite 1.83+ (RT#84680) |
| 36 |
Added a backend for searching with Lucy - Wiki::Toolkit::Search::Lucy |
| 37 |
Fix POD errors which are fatal with perl 5.18. |
| 38 |
|
| 39 |
0.80 3 May 2012 |
| 40 |
Spelling fix in Wiki::Toolkit::Search::Base |
| 41 |
Fixed deprecated use of foreach ... qw (fixes #53 and #54) |
| 42 |
Fixed bug with metadata_was in recent changes (#41). |
| 43 |
|
| 44 |
0.79 14 August 2010 |
| 45 |
Fix Win32 test failure http://www.cpantesters.org/cpan/report/8099980 |
| 46 |
Declare minimum required Perl version |
| 47 |
(thanks to Alexandr Ciornii for the patches) |
| 48 |
|
| 49 |
0.78 16 December 2009 |
| 50 |
Fix various POD errors and add POD testing (#45) |
| 51 |
More recent changes tests (for #41) |
| 52 |
Fix transaction handling in SQLite backend (#49) |
| 53 |
|
| 54 |
0.77 24 December 2008 |
| 55 |
Complete support for store->list_metadata_by_type, which |
| 56 |
returns a list of all the metadata values |
| 57 |
Add store->list_metadata_names, which will tell you all the |
| 58 |
different metadata types (names) |
| 59 |
write_node: return the version of the node that was just committed, |
| 60 |
if successful |
| 61 |
Don't write out a new version of a node if the checksum is the |
| 62 |
same as the one already stored (#43) |
| 63 |
t/400_upgrade.t: skip all tests correctly if no backends |
| 64 |
configured (#44) |
| 65 |
Configure charset correctly when passing in an existing $dbh (#24) |
| 66 |
|
| 67 |
0.76 13 July 2008 |
| 68 |
Really add missing prereq of DBI! |
| 69 |
Add testing of database schema upgrades (#32) |
| 70 |
Move to new schema version 10, including some missing indexes |
| 71 |
and support for verified flags. Note that |
| 72 |
the code using this column has not yet been written (#25, #34). |
| 73 |
Changed Wiki::Toolkit::Feed::Listing to use metadata_was instead of |
| 74 |
metadata_wasnt, for efficiency reasons. |
| 75 |
list_dangling_links, list_backlinks: don't return internal links |
| 76 |
that are from a node which does not exist. This works around |
| 77 |
database inconsistencies (introduced by manual deletion of nodes) |
| 78 |
which should be fixed by adding constraints to the database (see #38) |
| 79 |
|
| 80 |
0.75 11 May 2008 |
| 81 |
Added support for selecting versions by moderation status (see |
| 82 |
OpenGuides ticket #142). |
| 83 |
Added "new_only" parameter to ->list_recent_changes, so you can ask |
| 84 |
for e.g. all pages added in the last week. This involved a bit of |
| 85 |
a rewrite of ->list_recent_changes, so please keep an eye out for |
| 86 |
any bugs that may have been introduced (I'm not convinced the test |
| 87 |
suite covered everything it should have). |
| 88 |
Fix some badly-formatted POD documentation which accidentally included |
| 89 |
some code |
| 90 |
Fix uninitialized warnings in feed tests |
| 91 |
Fix database setup to ignore tables that aren't Wiki::Toolkit tables |
| 92 |
Fix test suite's incorrect passing of DBIxFTSMySQL connection |
| 93 |
parameters |
| 94 |
Add missing prereq of DBI (caught by the CPAN testers) and don't |
| 95 |
use DBI in Makefile.PL |
| 96 |
Add new scripts wiki-toolkit-delete-node and |
| 97 |
wiki-toolkit-revert-to-date |
| 98 |
|
| 99 |
0.74 9 June 2007 |
| 100 |
Added list_last_version_before method, to get the version of all the |
| 101 |
nodes at a given point in time |
| 102 |
Updated version on Text::WikiFormat dependency to avoid long-standing |
| 103 |
test failure with old version |
| 104 |
Bump version number of Wiki::Toolkit::Plugin as this was not done |
| 105 |
the last time it was changed (for CPAN.pm compatibility) |
| 106 |
|
| 107 |
0.73 12 December 2006 |
| 108 |
Added parse_feed_timestamp method |
| 109 |
Added encoding parameter to the Feed methods, to allow overriding |
| 110 |
the store's encoding. |
| 111 |
|
| 112 |
0.72 15 September 2006 |
| 113 |
Install wiki-toolkit-rename-node |
| 114 |
|
| 115 |
0.71 30 August 2006 |
| 116 |
More feed code refactoring, to allow "mini" feeds with just |
| 117 |
name, and optionally distance and location. Typically used in |
| 118 |
search results, especially with Wiki::Toolkit::Plugin::Locator's |
| 119 |
Ability to filter by nodes without certain metadata, by type |
| 120 |
or type+value ("everything without a longitude" or |
| 121 |
"everything not category=Pub") |
| 122 |
Fix bug in Listing.pm pod output |
| 123 |
|
| 124 |
0.70 6 June 2006 |
| 125 |
Feed code has been refactored. |
| 126 |
Check that the database schema is up-to-date when initializing the |
| 127 |
store and abort otherwise. |
| 128 |
In PostgresSQL setup code, delete orphaned content/metadata rows. |
| 129 |
When we bulk delete and insert data for an upgrade, check to make |
| 130 |
sure we can create the tables and indexes before dropping the old |
| 131 |
tables. |
| 132 |
Other miscellaneous fixes. |
| 133 |
|
| 134 |
0.69_03 13 May 2006 |
| 135 |
Add Wiki::Toolkit::Feed::RSS (formerly CGI::Wiki::Plugin::RSS::Modwiki) |
| 136 |
and Wiki::Toolkit::Feed::Atom (formerly CGI::Wiki::Plugin::Atom) |
| 137 |
|
| 138 |
0.69_02 27 April 2006 |
| 139 |
Add missing new file lib/Wiki/Toolkit/Setup/Database.pm to |
| 140 |
distribution. |
| 141 |
|
| 142 |
0.69_01 23 April 2006 |
| 143 |
*** IMPORTANT NOTICE *** This release introduces a new database schema |
| 144 |
which should be considered beta in nature at this stage. It is not yet |
| 145 |
suitable for deployment on production data and should only be tested |
| 146 |
on copies of your production data. If it eats your data, you get to |
| 147 |
keep the pieces. Additionally, functionality exposed in this beta |
| 148 |
release is subject to change. |
| 149 |
|
| 150 |
Rename to Wiki::Toolkit. |
| 151 |
Support for moderation on a per-node basis. |
| 152 |
Update to the database schema: added needs_moderation column to |
| 153 |
node, and moderated column to content |
| 154 |
You will need to run wiki-toolkit-setupdb to upgrade your database |
| 155 |
|
| 156 |
Many more plugin points: pre_write + pre_retrieve (get to change |
| 157 |
the data), pre_moderate + post_moderate, pre_rename + post_rename, |
| 158 |
+ post_delete. See test 150 for examples, and the perldoc of |
| 159 |
Wiki::Toolkit::Plugin for a description. |
| 160 |
|
| 161 |
Merge Wiki::Toolkit::Formatter::Multiple: |
| 162 |
0.02 15 September 2004 |
| 163 |
Applied patch from Tom Insam to fix bug with |
| 164 |
find_internal_links. |
| 165 |
|
| 166 |
0.01 22 September 2003 |
| 167 |
Initial release. |
| 168 |
|
| 169 |
0.69 22 February 2006 |
| 170 |
Update to database schema: added an ID column to node, and changed |
| 171 |
the content + metadata tables to FK to the ID field, rather than |
| 172 |
the node name. Also added rails like schema_info table, to hold |
| 173 |
the current database schema version number |
| 174 |
You will need to run cgi-wiki-setupdb to upgrade your database |
| 175 |
|
| 176 |
0.62 26 November 2004 |
| 177 |
Fixed delete_node bug - now it's OK to delete eg version 2 and |
| 178 |
then version 3 of a node (ie you no longer have to delete |
| 179 |
versions in order newest first). |
| 180 |
|
| 181 |
0.61 3 October 2004 |
| 182 |
Added "ignore_case" option to ->node_exists. |
| 183 |
|
| 184 |
0.60 30 September 2004 |
| 185 |
Added generic ->new method to CGI::Wiki::Plugin (Tom Insam). |
| 186 |
|
| 187 |
0.59 18 September 2004 |
| 188 |
Added "ignore_case" option to list_recent_changes for use with |
| 189 |
metadata filtering. |
| 190 |
|
| 191 |
0.58 18 September 2004 |
| 192 |
Even more powerful metadata filtering! You can now supply both |
| 193 |
"metadata_was" and "metadata_wasnt", or both "metadata_is" |
| 194 |
and "metadata_isnt", and they will be ANDed. |
| 195 |
(Also added the test I forgot to add to MANIFEST last time.) |
| 196 |
|
| 197 |
0.57 18 September 2004 |
| 198 |
Extended capabilities of list_recent_changes - more powerful |
| 199 |
metadata filtering (see docs for details). |
| 200 |
|
| 201 |
0.56 14 September 2004 |
| 202 |
Added Plucene search backend (with help from Simon Cozens). |
| 203 |
Applied Tom Insam's encoding patch. |
| 204 |
|
| 205 |
0.55 There wasn't one. Something bizarre happened with PAUSE. |
| 206 |
|
| 207 |
0.54 25 June 2004 |
| 208 |
Let ->delete_node take an optional version parameter. |
| 209 |
|
| 210 |
0.53 18 June 2004 |
| 211 |
Fixed CGI::Wiki::TestLib so $iterator->number actually does something. |
| 212 |
|
| 213 |
0.52 10 June 2004 |
| 214 |
Add include_all_changes and between_days to list_recent_changes. |
| 215 |
|
| 216 |
0.51 8 June 2004 |
| 217 |
Time for a non-developer release. |
| 218 |
|
| 219 |
0.51_02 6 June 2004 |
| 220 |
Added support for passing in a database handle instead of |
| 221 |
connection parameters (Chris Winters). |
| 222 |
|
| 223 |
0.51_01 24 February 2004 |
| 224 |
Refactoring of search classes in preparation for new search |
| 225 |
backend. (Simon Cozens) |
| 226 |
Please test against your applications and let me know of any |
| 227 |
problems ASAP. |
| 228 |
|
| 229 |
0.50 21 December 2003 |
| 230 |
First non-developer release with new test system. |
| 231 |
|
| 232 |
0.50_02 21 November 2003 |
| 233 |
Make tests skip rather than try to run zero tests if no backends |
| 234 |
configured - thanks to nothingmuch via CPAN testers for the |
| 235 |
test failure report. |
| 236 |
|
| 237 |
0.50_01 18 November 2003 |
| 238 |
Huge overhaul of test suite, no change in functionality. |
| 239 |
Removed dependency on Test::MockObject and Hook::LexWrap |
| 240 |
(the relevant tests are now skipped if these aren't installed). |
| 241 |
Removed the examples since they were very out of date. |
| 242 |
Made a small clarification to the CGI::Wiki::Plugin docs. |
| 243 |
|
| 244 |
0.49 23 September 2003 |
| 245 |
Added "ignore_case" option to ->list_nodes_by_metadata |
| 246 |
|
| 247 |
0.48 22 September 2003 |
| 248 |
Couple of small changes so I can write formatters that allow node |
| 249 |
metadata to affect the rendering of the node. |
| 250 |
A rewrite and renaming of the CGI::Wiki distribution is on the |
| 251 |
cards - subscribe to cgi-wiki-dev if you're interested: |
| 252 |
http://www.earth.li/cgi-bin/mailman/listinfo/cgi-wiki-dev |
| 253 |
|
| 254 |
0.47 29 August 2003 |
| 255 |
Added metadata_was and metadata_wasnt parameters to list_recent_changes |
| 256 |
|
| 257 |
0.46 14 August 2003 |
| 258 |
Fix for Shevek. ->write_node used to croak if it failed to index |
| 259 |
the backlinks, but since the MySQL varchar type is case-insensitive |
| 260 |
by default, we were getting a duplicate key error. As a temporary |
| 261 |
fix pending a proper think about an explicit way for you to specify |
| 262 |
whether you want your wiki case-sensitive or not (yes, people have |
| 263 |
asked me for both), this now just warns if it has trouble writing |
| 264 |
backlinks. |
| 265 |
|
| 266 |
0.45 11 August 2003 |
| 267 |
Removed dependency on Class::Delegation. |
| 268 |
Fixed Makefile.PL to check for Lingua::Stem before trying to test |
| 269 |
DBIx::FullTextSearch stuff. |
| 270 |
Fixed DBIx and Search::InvertedIndex tests to take note of database |
| 271 |
host if one supplied. |
| 272 |
|
| 273 |
0.44 10 July 2003 |
| 274 |
Fixed bug with metadata_isnt - it wasn't picking up nodes where |
| 275 |
that metadata type wasn't set. |
| 276 |
|
| 277 |
0.43 10 July 2003 |
| 278 |
Added metadata_isnt constraint to ->list_recent_changes. |
| 279 |
|
| 280 |
0.42 16 June 2003 |
| 281 |
Dropped Test::Warn from the dependencies - it's too much installing |
| 282 |
for too little gain (I was hardly using it). |
| 283 |
Made CGI::Wiki::TestConfig::Utilities check for the Postgres |
| 284 |
Search::InvertedIndex backend, and test using that if possible. |
| 285 |
|
| 286 |
0.41 27 May 2003 |
| 287 |
Changed the order of things when registering a plugin, so the |
| 288 |
on_register method can access the datastore properly. |
| 289 |
|
| 290 |
0.40 24 May 2003 |
| 291 |
Added an index to the metadata table in the MySQL setup, to |
| 292 |
speed up RecentChanges. To apply this index to an existing |
| 293 |
database you need to do (as the database superuser): |
| 294 |
|
| 295 |
CREATE INDEX metadata_index ON metadata |
| 296 |
(node, version, metadata_type, metadata_value(10)) |
| 297 |
|
| 298 |
Also made the warnings in Makefile.PL and INSTALL stronger, since |
| 299 |
we had another data-eating incident. |
| 300 |
|
| 301 |
0.39 21 May 2003 |
| 302 |
Amended Makefile.PL and INSTALL to make it absolutely clear that you |
| 303 |
should not run the tests on databases containing valuable data. |
| 304 |
Thanks to Rocco for, er, stress-testing this, and sorry to 'know' |
| 305 |
for eating its brains... |
| 306 |
|
| 307 |
0.38 17 May 2003 |
| 308 |
Added ->list_dangling_links method; thanks to Simon Cozens for |
| 309 |
the idea. |
| 310 |
|
| 311 |
0.37 12 May 2003 |
| 312 |
Oh dear. No real changes, but I moved Extending.pod to stop it |
| 313 |
getting installed as CGI::Extending. Sorry. |
| 314 |
|
| 315 |
0.36 9 May 2003 |
| 316 |
Added CGI::Wiki::Plugin as a base class for plugins to inherit from. |
| 317 |
|
| 318 |
0.35 5 May 2003 |
| 319 |
Fixed bug in CGI::Wiki::Store::SQLite introduced with new calling |
| 320 |
syntax in version shipped with 0.34. |
| 321 |
Very basic start at plugin support as described in Extending.pod - |
| 322 |
see 'perldoc CGI::Wiki' for details. |
| 323 |
|
| 324 |
0.34 5 May 2003 |
| 325 |
Moving towards adding proper plugin support - the proposed API is |
| 326 |
in Extending.pod, please take a look and send comments. |
| 327 |
In preparation for the above, the metadata hash passed to ->write_node |
| 328 |
can now contain more complex data structures - but these will *not* |
| 329 |
be stored directly, just checksummed. The way to access them will |
| 330 |
be via plugins. See 'perldoc CGI::Wiki;' for details. |
| 331 |
Also added alternative calling syntax for the CGI::Wiki::Setup::* |
| 332 |
store modules, as requested by Podmaster. |
| 333 |
|
| 334 |
0.33 3 May 2003 |
| 335 |
Added ->fuzzy_title_match method to the Search::InvertedIndex backend |
| 336 |
(CGI::Wiki::Search::SII). You will need to re-index all existing |
| 337 |
nodes in your wiki in order to take advantage of this. Take your |
| 338 |
wiki offline and do something like |
| 339 |
|
| 340 |
my $wiki = CGI::Wiki->new( %conf ); |
| 341 |
# (Where %conf is exactly as you would set this up for your actual |
| 342 |
# Wiki application, including your store, search and formatter |
| 343 |
# options exactly as you use them live.) |
| 344 |
my @nodes = $wiki->list_all_nodes; |
| 345 |
foreach my $node ( @nodes ) { |
| 346 |
my %node_data = $wiki->retrieve_node( $node ); |
| 347 |
$wiki->write_node( $node, |
| 348 |
$node_data{content}, |
| 349 |
$node_data{checksum}, |
| 350 |
$node_data{metadata} |
| 351 |
); |
| 352 |
print "Reindexed $node\n"; |
| 353 |
} |
| 354 |
|
| 355 |
to refresh all the nodes in your database. Note that for wikis |
| 356 |
of more than a couple of nodes, this can take quite some time. |
| 357 |
|
| 358 |
0.32 2 May 2003 |
| 359 |
Fixed bug with write_node dying when using Search::InvertedIndex |
| 360 |
and writing node with blank content (thanks to Bob Walker for |
| 361 |
the bug report). |
| 362 |
|
| 363 |
0.31 26 April 2003 |
| 364 |
Added an index to the metadata table in the postgres setup, to |
| 365 |
speed up RecentChanges. To apply this index to an existing |
| 366 |
database you need to do (as the database superuser): |
| 367 |
|
| 368 |
bench=# create index metadata_nodeindex on metadata |
| 369 |
(node, version, metadata_type, metadata_value); |
| 370 |
|
| 371 |
It will also help speed things up if you run: |
| 372 |
|
| 373 |
bench=# analyze; |
| 374 |
|
| 375 |
every so often, maybe once a week. |
| 376 |
|
| 377 |
0.30 22 April 2003 |
| 378 |
Added support for supplying 'host' parameter when connecting to |
| 379 |
MySQL/Postgres databases (requested and assisted by Paul Makepeace). |
| 380 |
|
| 381 |
0.29 20 April 2003 |
| 382 |
Got rid of the separate bin/user-setup-* scripts, added |
| 383 |
bin/cgi-wiki-setupdb and made it be installed when the rest of |
| 384 |
the distribution is. |
| 385 |
|
| 386 |
0.28 6 April 2003 |
| 387 |
Added ->formatter accessor to Wiki.pm |
| 388 |
|
| 389 |
0.27 5 April 2003 |
| 390 |
Added ->reinitialise_stores method to CGI::Wiki::TestConfig::Utilities |
| 391 |
to make it easier for plugins and so forth to make sure they have |
| 392 |
nice virginal test stores before they start running their tests. |
| 393 |
Altered my setup tests to use this. |
| 394 |
|
| 395 |
0.26 3 April 2003 |
| 396 |
Cleanup: |
| 397 |
- Removed deprecated method retrieve_node_and_checksum. |
| 398 |
- Added DBI as a prerequisite (ta Max). |
| 399 |
- Fixed up the SEE ALSO in the pod. |
| 400 |
|
| 401 |
Bugfix: |
| 402 |
- The SQLite backend was failing tests with DBI 1.34 or up; |
| 403 |
fixed now (with a kluge, but no worse than the one already there) |
| 404 |
Thanks to DH for the test failure report. |
| 405 |
|
| 406 |
0.25 29 March 2003 |
| 407 |
list_recent_changes can now filter on a single metadata criterion |
| 408 |
- multiple criteria coming soon. |
| 409 |
|
| 410 |
0.24 29 March 2003 |
| 411 |
list_recent_changes now returns any metadata attached to the node |
| 412 |
as well - so you can put comments and usernames and things in there |
| 413 |
and display them on RecentChanges. Note that it no longer pretends |
| 414 |
to return a comment separately since you can do it this way now. |
| 415 |
See perldoc CGI::Wiki::Store::Database for the new API. |
| 416 |
Moved recent changes tests out into their own file. |
| 417 |
|
| 418 |
0.23 17 March 2003 |
| 419 |
Fixed bug - metadata wasn't getting deleted when ->delete_node |
| 420 |
was called. |
| 421 |
|
| 422 |
0.22 8 March 2003 |
| 423 |
Rejig of the way the tests work, in preparation for allowing |
| 424 |
third-party plugins: |
| 425 |
|
| 426 |
When 'perl Makefile.PL' is run on a CGI::Wiki distribution, |
| 427 |
information will be gathered about test databases etc that |
| 428 |
can be used for running tests. CGI::Wiki::TestConfig::Utilities |
| 429 |
gives you convenient access to this information, so you can |
| 430 |
easily write and run tests for your own CGI::Wiki plugins. |
| 431 |
|
| 432 |
No functionality changes. |
| 433 |
|
| 434 |
0.21 6 March 2003 |
| 435 |
Purely a documentation update; thanks to Alex McLintock for comments. |
| 436 |
|
| 437 |
0.20 22 February 2003 |
| 438 |
Added simple (and intentionally naive) metadata support. Note that |
| 439 |
the database schema has changed (additional 'metadata' table), so |
| 440 |
you will need to re-run the relevant database setup script again as |
| 441 |
described below for upgrading to 0.15. |
| 442 |
Much of this release was written on David Woolger's laptop; thanks :) |
| 443 |
|
| 444 |
0.16 5 February 2003 |
| 445 |
Changed CGI::Wiki::Setup::Pg to use the 'timestamp' data type |
| 446 |
instead of 'datetime', since 'datetime' was deprecated and |
| 447 |
has been removed in Postgres 7.3. |
| 448 |
Fixed bug with supplying blank database username/password; |
| 449 |
thanks to DH for the bug report. |
| 450 |
Fixed mistake in pod, pointed out by Podmaster. |
| 451 |
|
| 452 |
0.15 5 January 2003 |
| 453 |
Amended store setup modules so their 'setup' functions don't |
| 454 |
wipe pre-existing data; added 'cleardb' functions for when you |
| 455 |
really do want to wipe it. |
| 456 |
Along with that, amended the setup scripts in ./bin/ to take a |
| 457 |
--force-preclear option. Now they leave existing data by default. |
| 458 |
Added standalone tests for CGI::Wiki::Formatter::Default |
| 459 |
Added $formatter->find_internal_links method and tests. |
| 460 |
|
| 461 |
Implemented backlinks! Thanks to blair christensen for the idea, |
| 462 |
and sorry for taking so long to get around to it. |
| 463 |
|
| 464 |
*** IMPORTANT NOTE *** |
| 465 |
*After* upgrading, you will need to re-run the relevant database setup |
| 466 |
script (in ./bin/) on any databases created using earlier versions of |
| 467 |
CGI::Wiki, in order that the internal_links table gets created. From |
| 468 |
version 0.15, these scripts won't affect data in existing tables, as |
| 469 |
long as you don't supply the --force-preclear option, so this is safe. |
| 470 |
|
| 471 |
===> *** IF YOU DON'T DO THIS THEN YOUR CODE WILL FALL OVER AND DIE. *** |
| 472 |
|
| 473 |
You have been warned. |
| 474 |
|
| 475 |
(You can do the database munging before you install this new version |
| 476 |
-- the old versions won't mind the extra table -- but |
| 477 |
===> *** MAKE SURE *** |
| 478 |
to invoke the scripts as something like |
| 479 |
perl -Ilib bin/user-setup-[...] |
| 480 |
so you get the *new* setup modules which *won't* hose your data |
| 481 |
(the old ones did, ugh).) |
| 482 |
|
| 483 |
The backlink data will also not exist for links *from* a given node |
| 484 |
until you re-write that node. Take your wiki offline then do |
| 485 |
something like |
| 486 |
|
| 487 |
my $wiki = CGI::Wiki->new( %conf ); |
| 488 |
# (Where %conf is exactly as you would set this up for your actual |
| 489 |
# Wiki application, including your store, search and formatter |
| 490 |
# options exactly as you use them live.) |
| 491 |
my @nodes = $wiki->list_all_nodes; |
| 492 |
foreach my $node ( @nodes ) { |
| 493 |
my %nodedata = $wiki->retrieve_node( $node ); |
| 494 |
$wiki->write_node($node, $nodedata{content}, $nodedata{checksum}); |
| 495 |
} |
| 496 |
|
| 497 |
to refresh all the nodes in your database. |
| 498 |
|
| 499 |
0.14 3 January 2003 |
| 500 |
Added $store->node_exists method and tests. |
| 501 |
Amended $store->list_recent_changes to take a 'last_n_changes' |
| 502 |
parameter, so you can find the last 10 (or whatever) nodes edited. |
| 503 |
Made an internal change to the way ->format is delegated to the |
| 504 |
formatter object, to give said object access to the store. |
| 505 |
|
| 506 |
0.13 2 January 2003 |
| 507 |
Minor fix - t/031_formatting.t was being reported as failing on |
| 508 |
systems without support for any of the backends, since I forgot to |
| 509 |
update the SKIP condition when I added six extra tests. Thanks |
| 510 |
to [email protected] for the report via cpan-testers. |
| 511 |
|
| 512 |
0.12 1 January 2003 |
| 513 |
The Search::InvertedIndex backend wasn't indexing the node titles - |
| 514 |
fixed and added tests. |
| 515 |
Added tests for non-MySQL Search::InvertedIndex backends and fixed |
| 516 |
CGI::Wiki::Search::SII to be case-insensitive all the time (instead |
| 517 |
of just when using MySQL). |
| 518 |
Tweaked the documentation some more - offers to simplify the docs |
| 519 |
and/or write a tutorial would be greatly appreciated. |
| 520 |
|
| 521 |
0.11 31 December 2002 |
| 522 |
Changes suggested by blair christensen, to allow alternate formatters. |
| 523 |
See the README for details and CGI::Wiki::Formatter::Default for an |
| 524 |
example. |
| 525 |
Took out some leftover debug stuff from CGI::Wiki::Search::SII. |
| 526 |
|
| 527 |
0.10 19 December 2002 |
| 528 |
Added a Search::InvertedIndex backend; currently only tested with |
| 529 |
the MySQL version of Search::InvertedIndex. When running make test, |
| 530 |
if the Search::InvertedIndex tests are being run, the following tests |
| 531 |
will warn 'testdb is not open. Can't lock.' (but should pass): |
| 532 |
005_setup_mysql_search_invertedindex.t |
| 533 |
011_cgi_wiki.t |
| 534 |
|
| 535 |
*** NOTE INTERFACE CHANGE **** |
| 536 |
Cleaned up the initialisation of the Wiki object, at the expense of |
| 537 |
a small interface change - you now need to create your store and |
| 538 |
(optional) search objects yourself and pass them as arguments |
| 539 |
to CGI::Wiki->new - read 'perldoc CGI::Wiki' (once installed) |
| 540 |
for details, or see examples/wiki.cgi in the tarball. |
| 541 |
|
| 542 |
0.05 17 November 2002 |
| 543 |
I'd uploaded an unfinished version by mistake. One day I will figure |
| 544 |
out how to do this upload thing without screwing up. |
| 545 |
|
| 546 |
0.04 17 November 2002 |
| 547 |
Added a DBD::SQLite storage backend (thanks to blair christensen |
| 548 |
for a patch that makes up part of this). |
| 549 |
Added tests and docs for retrieval of old versions of pages |
| 550 |
(bad Kake, should have written those before implementing the |
| 551 |
feature; blair and Richard shamed me into getting it sorted now). |
| 552 |
retrieve_node_and_checksum is now deprecated -- retrieve_node is |
| 553 |
more clever and will return content only or a hash with content |
| 554 |
plus meta-data, according to context. So you should get at the |
| 555 |
checksum via that. |
| 556 |
user-setup-postgres.pl was buggy, fixed now. |
| 557 |
Only two beer rewards now remain. |
| 558 |
|
| 559 |
0.03 9 November 2002 |
| 560 |
Forgot to regenerate and add the README (I've put it in the |
| 561 |
MANIFEST now to stop that happening again). Also forgot to |
| 562 |
mention that I've upped the bribe. |
| 563 |
|
| 564 |
0.02 9 November 2002 |
| 565 |
Pulled out the database setup stuff into modules (Mark Fowler |
| 566 |
did most of this bit, thanks). |
| 567 |
Added recent_changes method and its tests, changed the example |
| 568 |
wiki to show how this can be used. |
| 569 |
Renamed some tests since the order they're run in matters now. |
| 570 |
Added better support for noninteractive installation (with help |
| 571 |
from Mark again). |
| 572 |
|
| 573 |
0.01 28 October 2002 |
| 574 |
Initial release. |