diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index d7134530..e622bd6b 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -12,11 +12,11 @@ on: jobs: build: - runs-on: ubuntu-24.04 + runs-on: ubuntu-26.04 strategy: matrix: - php-versions: ['8.1', '8.2'] + php-versions: ['8.1', '8.2', '8.3', '8.4'] name: PHP ${{ matrix.php-versions }} Test diff --git a/bin/opus4db b/bin/opus4db index f2897523..f96133de 100755 --- a/bin/opus4db +++ b/bin/opus4db @@ -165,9 +165,9 @@ createDatabase() sql=$(cat <<-ENDSTRING CREATE DATABASE IF NOT EXISTS $dbname DEFAULT CHARACTER SET = UTF8 DEFAULT COLLATE = UTF8_GENERAL_CI; - CREATE USER IF NOT EXISTS '$admin'@'localhost' IDENTIFIED WITH mysql_native_password BY '${adminpwd}'; + CREATE USER IF NOT EXISTS '$admin'@'localhost' IDENTIFIED WITH caching_sha2_password BY '${adminpwd}'; GRANT ALL PRIVILEGES ON $dbname.* TO '$admin'@'localhost'; - CREATE USER IF NOT EXISTS '$user'@'localhost' IDENTIFIED WITH mysql_native_password BY '$userpwd'; + CREATE USER IF NOT EXISTS '$user'@'localhost' IDENTIFIED WITH caching_sha2_password BY '$userpwd'; GRANT SELECT,INSERT,UPDATE,DELETE ON $dbname.* TO '$user'@'localhost'; FLUSH PRIVILEGES; ENDSTRING diff --git a/composer.json b/composer.json index 04d1d628..b2739474 100644 --- a/composer.json +++ b/composer.json @@ -16,10 +16,10 @@ "ext-json": "*", "ext-libxml": "*", "ext-xsl": "*", - "opus4/zf1-future": "1.25.*", - "opus4-repo/opus4-common": "^4.10", - "opus4-repo/opus4-doi": "^4.9", - "opus4-repo/opus4-i18n": "*", + "opus4/zf1-future": "*", + "opus4-repo/opus4-common": "dev-master as 4.11", + "opus4-repo/opus4-doi": "dev-main as 4.11", + "opus4-repo/opus4-i18n": "dev-main", "symfony/console": "*", "doctrine/dbal": "*", "doctrine/orm": "*", diff --git a/db/schema/001-OPUS-4.4.4.sql b/db/schema/001-OPUS-4.4.4.sql index 3c666d05..f746bde3 100644 --- a/db/schema/001-OPUS-4.4.4.sql +++ b/db/schema/001-OPUS-4.4.4.sql @@ -647,7 +647,7 @@ CREATE TABLE IF NOT EXISTS `collections` ( `visible_publish` tinyint(1) unsigned NOT NULL DEFAULT 1 COMMENT 'Show collection in publish form', PRIMARY KEY (`id`), - KEY `role_id` (`role_id`,`id`), + UNIQUE KEY `role_id` (`role_id`,`id`), UNIQUE KEY `role_id_left` (`role_id`,`left_id`), UNIQUE KEY `role_id_right` (`role_id`,`right_id`), -- UNIQUE KEY `role_id_number` (`role_id`,`number`), -- Uniqueness-constraint on number? diff --git a/library/Opus/Db/Console/DateCommand.php b/library/Opus/Db/Console/DateCommand.php index 2fcc12ab..4a38cfca 100644 --- a/library/Opus/Db/Console/DateCommand.php +++ b/library/Opus/Db/Console/DateCommand.php @@ -44,7 +44,7 @@ class DateCommand extends Command { const OPTION_FIX = 'fix'; - protected function configure() + protected function configure(): void { parent::configure();