From 835bb66aecb760a888846bc80d18ad5ffc7cd554 Mon Sep 17 00:00:00 2001 From: Trust Date: Wed, 5 Feb 2025 21:55:39 -0500 Subject: [PATCH] Manifest Schema Additions --- docs/developer/database-schema-migrations.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/developer/database-schema-migrations.md b/docs/developer/database-schema-migrations.md index 52c80034..dc592a0b 100644 --- a/docs/developer/database-schema-migrations.md +++ b/docs/developer/database-schema-migrations.md @@ -29,10 +29,16 @@ ADD COLUMN `id` int(11) NOT NULL AUTO_INCREMENT FIRST, DROP PRIMARY KEY, ADD PRIMARY KEY (`id`) USING BTREE, ADD UNIQUE INDEX(`varname`); -)" +)", + .content_schema_update = false, + .force_interactive = true }, ``` +### Optional fields: +- `.content_schema_update` - If true, this will update the content_db if configured +- `.force_interactive` - If true, this will require the user during the migration to consent to the upgrade to move forward as it could be risky or breaking changes. + That's it! As far as what is needed from a developer to have the server run the migration, that is all you need to do. You can test it by running world manually after you compile. Please test your database migrations before submitting a PR, it's a very simple mistake to avoid trying to fix later. @@ -50,3 +56,11 @@ You can test it by running world manually after you compile. Please test your da // std::string sql{}; // the SQL DDL that gets ran when the condition is true // }; ``` + +### Match Conditions + +- **contains** = Strings::Contains(r, e.match); +- **match** = e.match; +- **missing** = !Strings::Contains(r, e.match); +- **empty** = r.empty(); +- **not_empty** = !r.empty(); \ No newline at end of file