Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
docs: add example to schema update guideline (#1040)
Danny Xu47fe4afb913e
diff --git a/docs/schema-update-guide.md b/docs/schema-update-guide.mdindex 2fff63ba8e..add6e27423 100644--- a/docs/schema-update-guide.md+++ b/docs/schema-update-guide.md@@ -11,7 +11,7 @@ Let's take an example that our release is at version `1.5` and dev at version `11. Add a new SQL file for the DDL such as `1.6/0001__roofshot.sql`. The prefix numbers should be in consecutively increasing order such as `0001__rootshot.sql` then `0002__moonshot.sql`.1. Update `LATEST.sql` and `LATEST_DATA.sql` w.r.t. the DDL changes. (TODO: auto-generate the latest schema)1. Update [dev demo data](https://github.com/bytebase/bytebase/tree/main/store/demo/dev) if needed.-1. Since we use the same code for both dev and release schemas, we should add if-else branching to read storage differently based on schema version. (TODO: add example later)+1. Since we use the same code for both dev and release schemas, we should add if-else branching to read storage differently based on schema version, such as [this example](https://github.com/bytebase/bytebase/pull/1039).## ReleaseReleaser should take the following steps for schema update release, at most once a month. A DDL file should only be moved forward to release only if the feature is completed and well tested.