salix/db/versions/11107-pinkAspidistra/00-firstScript.sql

14 lines
565 B
MySQL
Raw Normal View History

CREATE OR REPLACE TABLE `util`.`logCleanMultiConfig` (
2024-06-18 06:40:33 +00:00
`schemaName` varchar(64) NOT NULL,
`tableName` varchar(64) NOT NULL,
`retentionDays` int(11) DEFAULT NULL,
2024-06-18 06:40:33 +00:00
`order` int(11) DEFAULT NULL,
`started` datetime DEFAULT NULL,
`finished` datetime DEFAULT NULL,
2024-06-18 06:40:33 +00:00
PRIMARY KEY (`schemaName`,`tableName`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
2024-07-19 06:58:51 +00:00
INSERT INTO `util`.`logCleanMultiConfig` (`schemaName`, `tableName`)
SELECT TABLE_SCHEMA, TABLE_NAME FROM information_schema.`COLUMNS`
WHERE COLUMN_NAME IN ('newInstance', 'newInstance');