Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

feat: set respository branch_filter and file_path_template default as '' (#387)

tianzhou84a444b984f5
diff --git a/store/migration/10001__init_schema.sql b/store/migration/10001__init_schema.sql
index 9979c54191..bc38d78e2f 100644
--- a/store/migration/10001__init_schema.sql
+++ b/store/migration/10001__init_schema.sql
@@ -1164,12 +1164,11 @@ CREATE TABLE repository (
web_url TEXT NOT NULL,
-- Branch we are interested.
-- For GitLab, this corresponds to webhook's push_events_branch_filter. Wildcard is supported
- -- branch_filter follows trim(branch_filter) != ''.
- branch_filter TEXT NOT NULL,
+ branch_filter TEXT NOT NULL DEFAULT '',
-- Base working directory we are interested.
base_directory TEXT NOT NULL DEFAULT '',
-- The file path template for matching the commited migration script.
- file_path_template TEXT NOT NULL,
+ file_path_template TEXT NOT NULL DEFAULT '',
-- The file path template for storing the latest schema auto-generated by Bytebase after migration.
-- If empty, then Bytebase won't auto generate it.
schema_path_template TEXT NOT NULL DEFAULT '',