Skip to content

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

Put Branch setting before Base directory since the former is the required field

天舟1e261c097932
diff --git a/frontend/src/components/RepositoryForm.vue b/frontend/src/components/RepositoryForm.vue
index 4fa42fc3d7..22e8ecc1c2 100644
--- a/frontend/src/components/RepositoryForm.vue
+++ b/frontend/src/components/RepositoryForm.vue
@@ -36,22 +36,6 @@
:value="repositoryInfo.fullPath"
/>
</div>
- <div>
- <div class="textlabel">Base directory</div>
- <div class="mt-1 textinfolabel">
- The directory and all its sub-directories that Bytebase will observe the
- SQL file (.sql) change. If empty, then Bytebase will observe the entire
- repository.
- </div>
- <input
- id="basedirectory"
- name="basedirectory"
- type="text"
- class="textfield mt-2 w-full"
- :disabled="!allowEdit"
- v-model="repositoryConfig.baseDirectory"
- />
- </div>
<div>
<div class="textlabel">Branch <span class="text-red-600">*</span></div>
<div class="mt-1 textinfolabel">
@@ -70,6 +54,22 @@
Tip: You can also use wildcard like 'feature/*'
</div>
</div>
+ <div>
+ <div class="textlabel">Base directory</div>
+ <div class="mt-1 textinfolabel">
+ The directory and all its sub-directories that Bytebase will observe the
+ SQL file (.sql) change. If empty, then Bytebase will observe the entire
+ repository.
+ </div>
+ <input
+ id="basedirectory"
+ name="basedirectory"
+ type="text"
+ class="textfield mt-2 w-full"
+ :disabled="!allowEdit"
+ v-model="repositoryConfig.baseDirectory"
+ />
+ </div>
</div>
</template>