AFFiNE/packages/backend/server/migrations
forehalo 638fc62601
feat(server): runtime setting support (#5602)
---

<details open="true"><summary>Generated summary (powered by <a href="https://app.graphite.dev">Graphite</a>)</summary>

> ## TL;DR
> This pull request adds a new migration file, a new model, and new modules related to runtime settings. It also introduces a new `Runtime` service that allows getting, setting, and updating runtime configurations.
>
> ## What changed
> - Added a new migration file `migration.sql` that creates a table called `application_settings` with columns `key` and `value`.
> - Added a new model `ApplicationSetting` with properties `key` and `value`.
> - Added a new module `RuntimeSettingModule` that exports the `Runtime` service.
> - Added a new service `Runtime` that provides methods for getting, setting, and updating runtime configurations.
> - Modified the `app.module.ts` file to import the `RuntimeSettingModule`.
> - Modified the `index.ts` file in the `fundamentals` directory to export the `Runtime` service.
> - Added a new file `def.ts` in the `runtime` directory that defines the runtime configurations and provides a default implementation.
> - Added a new file `service.ts` in the `runtime` directory that implements the `Runtime` service.
>
> ## How to test
> 1. Run the migration script to create the `application_settings` table.
> 2. Use the `Runtime` service to get, set, and update runtime configurations.
> 3. Verify that the runtime configurations are stored correctly in the database and can be retrieved and modified using the `Runtime` service.
>
> ## Why make this change
> This change introduces a new feature related to runtime settings. The `Runtime` service allows the application to dynamically manage and modify runtime configurations without requiring a restart. This provides flexibility and allows for easier customization and configuration of the application.
</details>
2024-05-28 06:43:53 +00:00
..
20230425035217_init refactor(infra): directory structure (#4615) 2023-10-18 15:30:08 +00:00
20230621052642_next_auth_integrate refactor(infra): directory structure (#4615) 2023-10-18 15:30:08 +00:00
20230628074203_workspace refactor(infra): directory structure (#4615) 2023-10-18 15:30:08 +00:00
20230705025556_workspace_id_fkey refactor(infra): directory structure (#4615) 2023-10-18 15:30:08 +00:00
20230706065816_workspace_subpage refactor(infra): directory structure (#4615) 2023-10-18 15:30:08 +00:00
20230706090316_change_avatar_url_field_name refactor(infra): directory structure (#4615) 2023-10-18 15:30:08 +00:00
20230709091238_fix_blob_types refactor(infra): directory structure (#4615) 2023-10-18 15:30:08 +00:00
20230713022301_update_manager refactor(infra): directory structure (#4615) 2023-10-18 15:30:08 +00:00
20230714065216_snapshot_id refactor(infra): directory structure (#4615) 2023-10-18 15:30:08 +00:00
20230717084417_remove_update_fkey refactor(infra): directory structure (#4615) 2023-10-18 15:30:08 +00:00
20230822071646_add_new_features_waiting_list refactor(infra): directory structure (#4615) 2023-10-18 15:30:08 +00:00
20230824091506_euser_email_is_not_nullable refactor(infra): directory structure (#4615) 2023-10-18 15:30:08 +00:00
20230906100042_user_feature_gates refactor(infra): directory structure (#4615) 2023-10-18 15:30:08 +00:00
20231009081826_updates_manager refactor(infra): directory structure (#4615) 2023-10-18 15:30:08 +00:00
20231018074747_payment feat(core): payment backend 2023-10-24 11:40:44 +08:00
20231019094615_add_inovice_link feat(core): impl billing settings (#4652) 2023-10-24 11:40:46 +08:00
20231024095005_updates_pkey perf(server): opmitize updates table 2023-10-24 17:54:59 +08:00
20231027090128_data_migration feat(server): add data migration system 2023-10-30 11:12:09 +08:00
20231030104009_user_features feat: user usage init (#5074) 2023-12-13 09:21:14 +00:00
20231103080802_permission refactor(server): separate page visibility from workspace permission (#4836) 2023-11-06 03:49:39 +00:00
20231121033532_history feat(server): impl doc history (#5004) 2023-11-22 07:56:59 +00:00
20231124091123_soft_delete_opt_blobs feat(server): add soft deleted flag to optimized blob table (#5058) 2023-11-27 07:06:31 +00:00
20240103092238_add_workspace_features feat: add workspace feature tests (#5501) 2024-01-05 04:13:47 +00:00
20240228065558_new_auth refactor(server): auth (#5895) 2024-03-12 10:00:09 +00:00
20240313033631_user_registered_flag fix(server): user can not signup through oauth if ever invited (#6101) 2024-03-13 07:50:11 +00:00
20240319104623_user_subscriptions feat(server): support ai plan (#6216) 2024-03-22 08:39:18 +00:00
20240321065017_ai_prompts feat: add prompt service (#6241) 2024-04-02 07:04:54 +00:00
20240325125057_ai_sessions feat: add session impl (#6254) 2024-04-10 11:15:25 +00:00
20240402100608_ai_prompt_session_metadata feat: text to image impl (#6437) 2024-04-10 12:13:39 +00:00
20240506051856_add_user_and_features_index feat: improve query performence (#6764) 2024-05-06 09:12:04 +00:00
20240520055805_runtime_setting feat(server): runtime setting support (#5602) 2024-05-28 06:43:53 +00:00
20240521100307_add_copilot_cost feat: history cleanup (#7007) 2024-05-24 08:00:05 +00:00
20240527095524_fix_prompt_schema fix: choose provider correctly (#7081) 2024-05-27 09:57:39 +00:00
migration_lock.toml feat: history cleanup (#7007) 2024-05-24 08:00:05 +00:00