All checks were successful
Deploy tt-tagebuch / deploy (push) Successful in 54s
- Changed file permissions from 644 to 755 for various files in the mobile-app and mobile-app_legacy_rn_expo directories, ensuring executable permissions where necessary. - Added a new SQL migration script to the backend to introduce missing columns for club billing and invoice settings in the clubs table, maintaining synchronization with the current Sequelize model.
36 lines
805 B
SQL
Executable File
36 lines
805 B
SQL
Executable File
-- Script zum Überprüfen der echten Tabellennamen
|
|
USE trainingsdiary;
|
|
|
|
-- Alle Tabellen in der Datenbank anzeigen
|
|
SHOW TABLES;
|
|
|
|
-- Detaillierte Informationen über alle Tabellen
|
|
SELECT
|
|
TABLE_NAME,
|
|
TABLE_ROWS,
|
|
DATA_LENGTH,
|
|
INDEX_LENGTH
|
|
FROM INFORMATION_SCHEMA.TABLES
|
|
WHERE TABLE_SCHEMA = 'trainingsdiary'
|
|
ORDER BY TABLE_NAME;
|
|
|
|
-- Alle INDEX und Keys pro Tabelle anzeigen
|
|
SELECT
|
|
TABLE_NAME,
|
|
INDEX_NAME,
|
|
COLUMN_NAME,
|
|
NON_UNIQUE,
|
|
SEQ_IN_INDEX
|
|
FROM INFORMATION_SCHEMA.STATISTICS
|
|
WHERE TABLE_SCHEMA = 'trainingsdiary'
|
|
ORDER BY TABLE_NAME, INDEX_NAME, SEQ_IN_INDEX;
|
|
|
|
-- Anzahl der Keys pro Tabelle
|
|
SELECT
|
|
TABLE_NAME,
|
|
COUNT(*) as key_count
|
|
FROM INFORMATION_SCHEMA.STATISTICS
|
|
WHERE TABLE_SCHEMA = 'trainingsdiary'
|
|
GROUP BY TABLE_NAME
|
|
ORDER BY key_count DESC;
|