From f66ab8dae2f3d0418759f81a3a64dc9517a62449 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 15:17:31 +0200 Subject: Adding upstream version 1.10.2. Signed-off-by: Daniel Baumann --- schema/mysql-migrations/upgrade_122.sql | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 schema/mysql-migrations/upgrade_122.sql (limited to 'schema/mysql-migrations/upgrade_122.sql') diff --git a/schema/mysql-migrations/upgrade_122.sql b/schema/mysql-migrations/upgrade_122.sql new file mode 100644 index 0000000..6a94e05 --- /dev/null +++ b/schema/mysql-migrations/upgrade_122.sql @@ -0,0 +1,12 @@ +ALTER TABLE director_generated_file + ADD COLUMN cnt_apply INT(10) UNSIGNED NOT NULL DEFAULT 0; + +UPDATE director_generated_file +SET cnt_apply = ROUND( + (LENGTH(content) - LENGTH( REPLACE(content, 'apply ', '') ) ) + / LENGTH('apply ') +); + +INSERT INTO director_schema_migration + (schema_version, migration_time) + VALUES (122, NOW()); -- cgit v1.2.3