danielneis / moodle-availability_paypal

An Availability Condition for Moodle to require a PayPal payment to access activities and resources.
https://moodle.org/plugins/availability_paypal
GNU General Public License v3.0
11 stars 7 forks source link

Can't install it: table name too long #11

Closed mudrd8mz closed 8 years ago

mudrd8mz commented 8 years ago
Upgrading to new version
availability_paypal
Coding error detected, it must be fixed by a programmer:
Invalid table name {availability_paypal_transactions}: name is too long. Limit is 28 chars.

Debug info: 
Error code: codingerror
Stack trace:
line 287 of /lib/ddl/sql_generator.php: coding_exception thrown
line 248 of /lib/ddl/sql_generator.php: call to sql_generator->getCreateTableSQL()
line 409 of /lib/ddl/database_manager.php: call to sql_generator->getCreateStructureSQL()
line 364 of /lib/ddl/database_manager.php: call to database_manager->install_from_xmldb_structure()
line 508 of /lib/upgradelib.php: call to database_manager->install_from_xmldb_file()
line 1647 of /lib/upgradelib.php: call to upgrade_plugins()
line 677 of /admin/index.php: call to upgrade_noncore()

My environment is PostgreSQL with the prefix set to mdl_.