18 declare(strict_types=1);
29 $this->database = $db;
45 if (!$this->database->tableExists(
'il_adn_notifications') ||
46 $this->database->tableColumnExists(
'il_adn_notifications',
'has_language_limitation')
50 $this->database->addTableColumn(
51 'il_adn_notifications',
52 'has_language_limitation',
60 $this->database->manipulate(
' 61 UPDATE il_adn_notifications SET has_language_limitation = 0; 64 if ($this->database->tableColumnExists(
'il_adn_notifications',
'limited_to_languages')
68 $this->database->addTableColumn(
69 'il_adn_notifications',
70 'limited_to_languages',
78 $this->database->manipulate(
' 79 UPDATE il_adn_notifications SET limited_to_languages = "[]"; 92 if (null === $this->database) {
93 throw new LogicException(self::class .
'::prepare() must be called before db-update-steps execution.');
abortIfNotPrepared()
Halts the execution of these update steps if no database was provided.
step_1()
Adds a new table column called 'has_language_limitation' which is used to define whether a notificati...
prepare(ilDBInterface $db)