-
-
Save volllly/3574d5b06a8736fd03eb769e4ecb4e6c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
EXISTS ( | |
SELECT | |
* | |
FROM | |
information_schema.columns | |
WHERE | |
table_name = 'ftQueueItem' AND column_name = 'cbReceiptReference' AND data_type = 'varchar' AND character_maximum_length = 450 | |
) as ftQueueItem_cbReceiptReference_dataType, | |
EXISTS ( | |
SELECT | |
index_name | |
FROM | |
information_schema.statistics | |
WHERE | |
table_name = 'ftQueueItem' | |
and index_name = 'idx_ftQueueItem_Timestamp' | |
) as idx_ftQueueItem_Timestamp, | |
EXISTS ( | |
SELECT | |
index_name | |
FROM | |
information_schema.statistics | |
WHERE | |
table_name = 'ftQueueItem' | |
and index_name = 'idx_ftQueueItem_cbReceiptReference' | |
) as idx_ftQueueItem_cbReceiptReference, | |
EXISTS ( | |
SELECT | |
index_name | |
FROM | |
information_schema.statistics | |
WHERE | |
table_name = 'ftActionJournal' | |
and index_name = 'idx_ftActionJournal_Timestamp' | |
) as idx_ftActionJournal_Timestamp, | |
EXISTS ( | |
SELECT | |
index_name | |
FROM | |
information_schema.statistics | |
WHERE | |
table_name = 'ftReceiptJournal' | |
and index_name = 'idx_ftReceiptJournal_Timestamp' | |
) as idx_ftReceiptJournal_Timestamp, | |
EXISTS ( | |
SELECT | |
index_name | |
FROM | |
information_schema.statistics | |
WHERE | |
table_name = 'ftJournalAT' | |
and index_name = 'idx_ftJournalAT_Timestamp' | |
) as idx_ftJournalAT_Timestamp, | |
EXISTS ( | |
SELECT | |
index_name | |
FROM | |
information_schema.statistics | |
WHERE | |
table_name = 'ftJournalDE' | |
and index_name = 'idx_ftJournalDE_Timestamp' | |
) as idx_ftJournalDE_Timestamp, | |
EXISTS ( | |
SELECT | |
index_name | |
FROM | |
information_schema.statistics | |
WHERE | |
table_name = 'ftJournalFR' | |
and index_name = 'idx_ftJournalFR_Timestamp' | |
) as idx_ftJournalFR_Timestamp, | |
( | |
SELECT | |
IF (CurrentVersion = '005_Indices', true, false) | |
FROM | |
ftDatabaseSchema | |
) as ftDatabase_schema_version; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment