🇮🇳India @shaika-hassan

Account created on 30 September 2023, about 1 year ago
#

Recent comments

🇮🇳India shaika-hassan

Adjusting the minimum stability in Composer worked for me but it can have consequences, as it may allow the installation of packages in less stable states. However, it's a common practice to set the minimum stability to "dev" in development environments, where you might want to pull in the latest changes and development versions.
If you're working on a production environment or a more stable release, you might want to consider carefully the stability settings and the potential risks associated with installing less stable versions of packages.
Setting the minimum stability to "dev" and using "prefer-stable": true in composer.json might resolve the issue you're facing.

🇮🇳India shaika-hassan

To uninstall a table created using the schema API use the
\Drupal::database()->schema()->dropTable() method directly.

for example:
employee_uninstall() function: function employee_uninstall() {
// Remove the employee_info table.
\Drupal::database()->schema()->dropTable('employee_info');
}
With this code you would no longer see the "Call to undefined function drupal_uninstall_schema()" error, and it will correctly remove the 'employee_info' table when the module is uninstalled.

Production build 0.71.5 2024