Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,219 of 9,219 pages
About the help in other languages
All help pages

Upgrade from cjw_newsletter 5.0 to 5.1

5.1.0 adds the AI assist of the send form: a copy check of the edition before it is sent, and, with the extension expai, subject proposals for the A/B test and an AI review of the text (ai-assist.md). This page lists…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/ext/cjw_newsletter/upgrade-5.1.md

On this page

Upgrade from cjw_newsletter 5.0 to 5.1

5.1.0 adds the AI assist of the send form: a copy check of the edition before it is sent, and, with the extension expai, subject proposals for the A/B test and an AI review of the text (ai-assist.md). This page lists what an installation of 5.0.x has to do.

1. Requirements

  • cjw_newsletter 5.0.0. The database update starts from the 5.0.0 schema.
  • The requirements of 5.0 (kernel version, PHP) stay as they are. expai is optional: without it the copy check works and no AI control is shown.

2. Back up the database

The update adds one column and changes no data, but it cannot be undone without a backup.

3. The database update

One file per database engine. Run it once: it has no IF NOT EXISTS and fails on a database that has the column already.

EngineFile
MySQL / MariaDBupdate/database/mysql/5.1/dbupdate-5.0.0-to-5.1.0.sql
PostgreSQLupdate/database/postgresql/5.1/dbupdate-5.0.0-to-5.1.0.sql
SQLiteupdate/database/sqlite/5.1/dbupdate-5.0.0-to-5.1.0.sql
# MySQL / MariaDB
mysql -u <user> -p <database> < extension/cjw_newsletter/update/database/mysql/5.1/dbupdate-5.0.0-to-5.1.0.sql
# PostgreSQL
psql -U <user> -d <database> -f extension/cjw_newsletter/update/database/postgresql/5.1/dbupdate-5.0.0-to-5.1.0.sql
# SQLite (the installation's file, here the default of a new installation)
sqlite3 var/storage/sqlite3/sqlite.db < extension/cjw_newsletter/update/database/sqlite/5.1/dbupdate-5.0.0-to-5.1.0.sql

What it does: new column cjwnl_ab_variant.origin (varchar 10, not null, default person). Every existing variant gets person; a variant whose subject is an AI proposal used unchanged gets ai and is shown as "AI proposal" in the A/B report.

4. Autoloads, caches

php bin/php/ezpgenerateautoloads.php -e
php bin/php/ezcache.php --clear-all

5. Settings

Nothing has to be set. The new settings and their defaults are in [AiAssistSettings] and [CopyCheckSettings] of cjw_newsletter.ini (ai-assist.md); a site changes them in settings/override/cjw_newsletter.ini.append.php. The copy check appears on the send form at once, as warnings only. The AI parts appear only where expai is active and its own switch is on.

Something wrong on this page? Report an error

Documentation license

This page is part of the documentation of the extension cjw_newsletter and is distributed under the license of that extension.