-
Notifications
You must be signed in to change notification settings - Fork 33
[rel-db] Initial migration #3152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
hjanott
merged 119 commits into
OpenSlides:feature/relational-db
from
hjanott:first_migration
Jan 23, 2026
Merged
Changes from 93 commits
Commits
Show all changes
119 commits
Select commit
Hold shift + click to select a range
0fb8734
Add migration_helper reldb
reicda bded6a8
Merge branch 'feature/relational-db' of https://github.com/OpenSlides…
reicda 000c23a
Add first migration
reicda aa56a49
adjusted meta repo
reicda 4f60aec
adjusted meta repo
reicda 40fa60f
Update requirements_production.txt
reicda d0fdb6d
renamed and optimized files
reicda 64d2642
updated meta
reicda 842fddb
adjust meta
reicda a3d766a
Merge branch 'RelDB-Migration' of https://github.com/reicda/openslide…
reicda f86ac4c
adjust meta
reicda bc9d26a
restructured for test framework
reicda 37c9522
restructued for test framework
reicda 92a1ef9
exclude deleted models
reicda 2713c46
Merge remote-tracking branch 'upstream/feature/relational-db' into HEAD
luisa-beerboom ded2ab3
Fix
luisa-beerboom 948f571
Automatically open conn pool
luisa-beerboom f14b382
Comment out migration for now
luisa-beerboom 389abb8
merge upstream/feature-relational
hjanott 1c6d317
extend migration test
hjanott 74fa6e8
properly check table creation and deletion
hjanott 58ea990
update meta
hjanott 12932b9
adapt backend to new meta
hjanott 27879af
base pre_migration for vote service
hjanott f69b3ba
* fix exception on schema_checks
hjanott 32dc90f
rework migration route
hjanott 7f5f9f8
prod create schema
hjanott 542acef
wait for database
hjanott dc9bcd0
worn out password
hjanott 3637e2d
again
hjanott 1c275c5
more logs
hjanott 88a058c
ls debug
hjanott f90d9f0
add pyyaml to production requirements
hjanott c85105b
add logger
hjanott e62dcf7
update migration index
hjanott da31001
fixes
hjanott 7a775bd
use extended database and update meta
hjanott f599418
poll method
hjanott 1507cc8
skip inexistent fields again
hjanott c23d7f2
add error handling for too long values
hjanott 903a350
extend error message
hjanott 1e9cb83
shorten too long action worker names
hjanott 6e0615e
debug index prepared statement
hjanott a173c89
prepared statements debugging
hjanott 4a4c280
set prepared statements to none
hjanott e0c7e3e
improve exception
hjanott 95c9467
use field type instead of data type for json fields
hjanott 646763c
fix faulty import
hjanott fea6ddd
Revert logging.
hjanott 0c3689d
Revert "set prepared statements to none"
hjanott d676cf5
Revert "prepared statements debugging"
hjanott bb0ac85
Revert "debug index prepared statement"
hjanott 5cc6181
Revert "add logger"
hjanott c63e0dd
git revert adding extended database
hjanott 2378201
reapply meta
hjanott c0f6fb7
Revert "adapt backend to new meta"
hjanott 0f8fb2c
revert vote stuff
hjanott de3cbd8
update make file
hjanott a60b154
remove vote service pre migration
hjanott 70374ef
improve migrate thread stream and tests
hjanott ad9db8c
utilize only last line from stream
hjanott cc0a08c
improve progress message
hjanott e502a5e
non empty
hjanott ee08402
line break for output
hjanott 67e98c0
return exception to stats route
hjanott afc0d20
Revert "Revert "set prepared statements to none""
hjanott f8dcdf4
* more numbers in stats route
hjanott 6e25f6f
cleanup and documentation and small fixes
hjanott 05bcd47
requested changes
hjanott a114c3e
eliminate unwanted decimal zeroes in vote_weight and default_vote_weight
hjanott 7038e4f
set vote weight to 0.000001 instead
hjanott 5280e53
increase last rel migration
hjanott e1b6c7e
merge upstream feature rel-db
hjanott 954cc89
* extend migration states
hjanott d2fd1e0
proper origin collections
hjanott dee2244
delete version rows in one statement
hjanott 54017ad
Merge upstream feature rel-db
hjanott 29c4ea8
update id sequences
hjanott 9715bf4
remove poll_id from example votes again
hjanott 8d7b816
use new migration table and view names
hjanott 6dae774
Set up shadow copies for non initial migration
hjanott 69ae686
insert data into shadow copy
hjanott dcda9e2
increase last non rel index
hjanott 947913e
extend shadow copy handling
hjanott d4941a3
Merge feature/relational-db
hjanott 167feec
fix production
hjanott e2ad978
lint
hjanott 93a26b0
debugging workflow
hjanott ce5f134
assign prod as target for docker-compose.prod.yml
hjanott 08bdcf3
adding recursive submodule checkout
hjanott 4f7bc31
fix for reset
hjanott 021079c
Update openslides_backend/migrations/README.md
hjanott 31fa08a
pass argument
hjanott cb98b17
* use migration tables for initial migration
hjanott e1ad0a3
* centralize MODELS in InternalHelper
hjanott 68b0f34
Apply suggestions from code review
hjanott 2fda0f8
Update openslides_backend/migrations/README.md
hjanott 230a766
update from feature branch
hjanott 0802db4
update meta
hjanott 29d81e5
generate models
hjanott 968ecd6
use minimum non rel index
hjanott 11ebb50
drop all triggers instead of replacing
hjanott e1ffc6d
recreate trigger also on intermediate tables
hjanott 9731c2e
update meta
hjanott 183545c
generically update sequential_number sequences
hjanott ffe171d
allow only backendManage and dev instances to create schema in entryp…
hjanott fd8adfd
use double parenthesis
hjanott 8fbf9f5
delete migrations core
hjanott 9b3590f
use advisory locks instead
hjanott 771b34d
more elaborate debug output
hjanott deaf0fa
filter for relkind instead of output
hjanott 42e7bb8
implicit unlock of advisory lock
hjanott 9c60202
Revert "implicit unlock of advisory lock"
hjanott 394cb61
update meta
hjanott c68b5f6
fix entrypoint and advisory locks
hjanott 59d52b1
source environment variables in interactive shell
hjanott 2c06ea7
fix migration route test
hjanott 0877925
update meta
hjanott 3bffe1b
update models
hjanott File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| { | ||
| "_migration_index": 74, | ||
| "_migration_index": 100, | ||
| "gender":{ | ||
| "1":{ | ||
| "id": 1, | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| { | ||
| "_migration_index": 74, | ||
| "_migration_index": 100, | ||
| "gender":{ | ||
| "1":{ | ||
| "id": 1, | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule meta
updated
2 files
| +9 −3 | dev/sql/schema_relational.sql | |
| +9 −3 | dev/src/generate_sql_schema.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.