deepseek-1.x-dev/deepseek.install

deepseek.install
<?php

/**
 * @file
 * Install, update and uninstall functions for the Deep seek module.
 */

use Drupal\Core\Database\Database;

/**
 * Implements hook_uninstall().
 */
function deepseek_uninstall(): void {
  $connection = Database::getConnection();
  $schema = $connection->schema();
  $config = \Drupal::config('deepseek.settings');
  $table = $config->get('table_name') ?? 'ai_embedding';
  if ($schema->tableExists($table)) {
    $schema->dropTable($table);
  }
  \Drupal::messenger()->addStatus(t('Module Deep seek has been uninstalled.'));
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc