LibreBooking / app

Repository for the last open source version of Booked Scheduler. The "develop" branch contains the most current working code of the project and should be considered beta. The "master" branch is the most current stable release of BookedScheduler. Please read doc/README.md for further details.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2.8.6 - Missing table(s)

lukebarone opened this issue · comments

Fresh Debian Bookworm install with Apache2, mysql and PHP 8.2. Installed Composer, ran composer install.

Tried copying old config.php file over - no go. Tried with the config.php.DIST file, and got to the Install page. Added the install password. Will not continue. Checked file permissions, all good.

Error log in Apache:

[Fri Sep 01 15:35:02.954668 2023] [php:notice] [pid 13071] [client 127.0.0.1:46446] Error: Exception: There was an error executing your query\\nTable 'librebooking.announcement_groups' doesn't exist in /var/www/app/lib/Database/MySQL/MySqlConnection.php:114\nStack trace:\n#0 /var/www/app/lib/Database/MySQL/MySqlConnection.php(76): MySqlConnection->_handleError()\n#1 /var/www/app/lib/Database/Database.php(27): MySqlConnection->Query()\n#2 /var/www/app/Domain/Access/AnnouncementRepository.php(11): Database->Query()\n#3 /var/www/app/Presenters/LoginPresenter.php(123): AnnouncementRepository->GetFuture()\n#4 /var/www/app/Pages/LoginPage.php(126): LoginPresenter->PageLoad()\n#5 /var/www/app/Web/index.php(22): LoginPage->PageLoad()\n#6 {main}
[Fri Sep 01 15:35:02.954826 2023] [php:notice] [pid 13071] [client 127.0.0.1:46446] #0 /var/www/app/lib/Common/Logging/ExceptionHandler.php(22): WebExceptionHandler->HandleException(Object(Exception))\n#1 [internal function]: ExceptionHandler::Handle(Object(Exception))\n

In MariaDB:

root@booked:/var/www/app/database_schema# mysql librebooking
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 73
Server version: 10.11.3-MariaDB-1 Debian 12

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [librebooking]> show tables;
+----------------------------+
| Tables_in_librebooking     |
+----------------------------+
| accessories                |
| announcements              |
| blackout_instances         |
| blackout_series            |
| group_resource_permissions |
| group_roles                |
| groups                     |
| layouts                    |
| quotas                     |
| reservation_accessories    |
| reservation_instances      |
| reservation_resources      |
| reservation_series         |
| reservation_statuses       |
| reservation_types          |
| reservation_users          |
| resources                  |
| roles                      |
| schedules                  |
| time_blocks                |
| user_email_preferences     |
| user_groups                |
| user_resource_permissions  |
| user_statuses              |
| users                      |
+----------------------------+
25 rows in set (0.001 sec)

Searching the code for "announcement_groups" shows a schema update in 2.6, but I can't import that file.

What should we look at next?