Skip to content

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

feat(tenancy): add label keys for bb.location and bb.tenant to release seed (#242)

spinningbot5638ff60b6ba
diff --git a/store/seed/release/10001__init_seed.sql b/store/seed/release/10001__init_seed.sql
index 5471b5c277..ce39961583 100644
--- a/store/seed/release/10001__init_seed.sql
+++ b/store/seed/release/10001__init_seed.sql
@@ -84,6 +84,37 @@ VALUES
'{"schedule":"WEEKLY"}'
);
+-- Create label keys for `bb.location` and `bb.tenant`.
+INSERT INTO
+ label_key (
+ id,
+ creator_id,
+ updater_id,
+ key
+ )
+VALUES
+ (
+ 101,
+ 1,
+ 1,
+ 'bb.location'
+ );
+
+INSERT INTO
+ label_key (
+ id,
+ creator_id,
+ updater_id,
+ key
+ )
+VALUES
+ (
+ 102,
+ 1,
+ 1,
+ 'bb.tenant'
+ );
+
-- Create 1 "test", 1 "prod" instance (including * database and admin data source)
-- Both instances contains the connection info we expect user to setup according to https://docs.bytebase.com/install/docker#start-a-mysql-docker-instance-for-testing
-- Set host to 172.17.0.1 which is the default docker gateway ip.