This is an automated email from the ASF dual-hosted git repository.
dahn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/main by this push:
new 86ae1fee7ff Standardize and auto add license headers for SQL files
with pre-commit (#12071)
86ae1fee7ff is described below
commit 86ae1fee7ffd58f1a4ebc63313f73b92c2437f40
Author: John Bampton <[email protected]>
AuthorDate: Fri Nov 14 20:47:27 2025 +1000
Standardize and auto add license headers for SQL files with pre-commit
(#12071)
---
.pre-commit-config.yaml | 9 +++++++++
engine/schema/src/main/resources/META-INF/db/schema-307to410.sql | 2 +-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 4ff8e29f626..92e4df362af 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -62,6 +62,15 @@ repos:
- .github/workflows/license-templates/LICENSE.txt
- --fuzzy-match-generates-todo
exclude:
^(CHANGES|ISSUE_TEMPLATE|PULL_REQUEST_TEMPLATE)\.md$|^ui/docs/(full|smoke)-test-plan\.template\.md$
+ - id: insert-license
+ name: add license for all SQL files
+ files: \.sql$
+ args:
+ - --comment-style
+ - '|--|'
+ - --license-filepath
+ - .github/workflows/license-templates/LICENSE.txt
+ - --fuzzy-match-generates-todo
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
diff --git a/engine/schema/src/main/resources/META-INF/db/schema-307to410.sql
b/engine/schema/src/main/resources/META-INF/db/schema-307to410.sql
index 55d78b59437..3b0cfa8e6ce 100644
--- a/engine/schema/src/main/resources/META-INF/db/schema-307to410.sql
+++ b/engine/schema/src/main/resources/META-INF/db/schema-307to410.sql
@@ -3,7 +3,7 @@
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliances
+-- "License"); you may not use this file except in compliance
-- with the License. You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0