Skip to content

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

feat: add options in data source schema (#3829)

h3n4le5bf9ca72da1
diff --git a/store/migration/dev/20221212000000##add_datasource_options.sql b/store/migration/dev/20221212000000##add_datasource_options.sql
new file mode 100644
index 0000000000..674bbafbbd
--- /dev/null
+++ b/store/migration/dev/20221212000000##add_datasource_options.sql
@@ -0,0 +1 @@
+ALTER TABLE data_source ADD COLUMN options JSONB NOT NULL DEFAULT '{}';
diff --git a/store/migration/dev/LATEST.sql b/store/migration/dev/LATEST.sql
index a0f1d542fe..371788cd1f 100644
--- a/store/migration/dev/LATEST.sql
+++ b/store/migration/dev/LATEST.sql
@@ -544,7 +544,8 @@ CREATE TABLE data_source (
ssl_ca TEXT NOT NULL DEFAULT '',
-- host_override and port_override are used for read-replicas that have different connection addresses.
host_override TEXT NOT NULL DEFAULT '',
- port_override TEXT NOT NULL DEFAULT ''
+ port_override TEXT NOT NULL DEFAULT '',
+ options JSONB NOT NULL DEFAULT '{}'
);
CREATE INDEX idx_data_source_instance_id ON data_source(instance_id);