Commit Graph

39 Commits (c29c1d3e1fe808ca03f8b02a42f40d468f6f8805)

Author SHA1 Message Date
Johnny c29c1d3e1f fix: seed data 5 months ago
Steven 0610257562 refactor(store): remove deprecated migration_history table and backward compatibility code
Complete removal of migration_history system in favor of instance_setting based schema versioning.

Changes:
- Remove migration_history table creation from all LATEST.sql files
- Delete all migration_history model and implementation files (~300 lines)
- Remove FindMigrationHistoryList and UpsertMigrationHistory from Driver interface
- Replace complex backward compatibility functions with simple version check
- Update health check to use instance_setting instead of migration_history
- Simplify checkMinimumUpgradeVersion to detect pre-v0.22 installations

Breaking change:
Users on versions < v0.22.0 (May 2024) must upgrade to v0.25.x first before upgrading to this version.
Clear error message with upgrade instructions will be shown for old installations.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
6 months ago
Steven 4c1d1c70d1 refactor: rename workspace to instance throughout codebase
Remove work-related terminology by renaming "workspace" to "instance"
across the entire application. This change better reflects that Memos
is a self-hosted tool suitable for personal and non-work use cases.

Breaking Changes:
- API endpoints: /api/v1/workspace/* → /api/v1/instance/*
- gRPC service: WorkspaceService → InstanceService
- Proto types: WorkspaceSetting → InstanceSetting
- Frontend translation keys: workspace-section → instance-section

Backend Changes:
- Renamed proto definitions and regenerated code
- Updated all store layer methods and database drivers
- Renamed service implementations and API handlers
- Updated cache from workspaceSettingCache to instanceSettingCache

Frontend Changes:
- Renamed service client: workspaceServiceClient → instanceServiceClient
- Updated all React components and state management
- Refactored stores: workspace.ts → instance.ts
- Updated all 32 locale translation files

All tests pass and both backend and frontend build successfully.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
7 months ago
Steven b4ea7d843f feat: enhance memo sorting functionality to support multiple fields 7 months ago
Steven 95de5cc700 refactor: update migration history methods 7 months ago
Johnny 7cc2df9254 chore: fix linter 9 months ago
Steven 834f92f67c chore: fix linter 11 months ago
Steven 0398df1d21 chore: update migrator comments 11 months ago
Steven 8e8e246ab2 chore: add server tests 12 months ago
Johnny 3fd29f6493 refactor: schema migrator 12 months ago
Steven f1b365f928 refactor: clean packages 1 year ago
Steven ad2c5f0d05 refactor: store cache 1 year ago
johnnyjoy 39d4d4f4f3 chore: update migrate scripts 1 year ago
johnnyjoy 1da0752922 chore: add schema version to workspace setting 2 years ago
Steven fa2b01cfb1 chore: tweak latest schema file name 2 years ago
Steven 615aa94793 fix: base path of migrator 2 years ago
Steven d11bd30ec6 chore: tweak logger 2 years ago
Steven 7134ad4883 chore: fix migration history 2 years ago
Steven fbdfaf85d9 chore: update migrator 2 years ago
Steven ccd3fdcd38 chore: fix tests 2 years ago
Steven 70837f88cb chore: fix linter 2 years ago
Steven 525223c261 chore: add tests for migrator 2 years ago
Steven 06c460b476 chore: tweak linter warning 2 years ago
Steven 1b6685d7cf chore: tweak linter warning 2 years ago
Steven 6e901fc940 refactor: store migrator 2 years ago
Steven 14d4cfd5a4 chore: tweak store methods name 2 years ago
Steven 3e6e56b008 refactor: update workspace store definition 2 years ago
Steven c93b1efbae chore: update workspace setting store 2 years ago
Steven 5b92ac1775 chore: fix setting migrator 2 years ago
Steven ce133ad69b chore: retire unused workspace settings 2 years ago
Steven 6b14d87521 chore: fix linter 2 years ago
Steven 51d58d3982 chore: add workspace setting migrator 2 years ago
Steven b4f2a3bd14 chore: remove migrator 2 years ago
Lincoln Nogueira 279cba0e6b
chore: greatly speed up migrator and lower memory usage (#2874)
* chore: add en-GB language

* chore: remove en-GB contents

* chore: prevent visitors from breaking demo
- prevent disabling password login
- prevent updating `memos-demo` user
- prevent setting additional style
- prevent setting additional script
- add some error feedback to system settings UI

* Revert "chore: add en-GB language"

This reverts commit 2716377b04.

* chore: speed-up migrator and lower memory usage
- remove all Store indirections
- query database directly with prepared statements

* chore: fix golangci-lint warnings
2 years ago
Steven ef73299340 chore: update resource name migrator 2 years ago
Steven 5e74394643 chore: add resource name migrator 2 years ago
Steven d67eaaaee2 chore: update database migrator 2 years ago
Lincoln Nogueira 369b8af109
chore: improve resource internal_path migrator (#2698)
* chore: improve internal path migrator
- handle mixed path styles
- handle Windows paths
- add tests

* chore: fix goimports error
2 years ago
Steven c797099950 chore: update resource internal path migrator 2 years ago