Skip to content

Commit 57806b7

Browse files
committed
squash migrations
1 parent 059c96c commit 57806b7

80 files changed

Lines changed: 1478 additions & 8229 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

exordos/images/bootstrap.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ log "Apply migrations"
154154
source "$VENV_PATH/bin/activate"
155155
# TODO(akremenetsky): Database configuration parameters should be taken
156156
# from persistent configuration file.
157+
ra-apply-migration --config-dir "$GC_CFG_DIR/" --path "$GC_PATH/.venv/lib/python3.14/site-packages/gcl_sdk/migrations"
157158
ra-apply-migration --config-dir "$GC_CFG_DIR/" --path "$GC_PATH/migrations"
158159

159160
# --- Meta file migrations ---

exordos/images/install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ sudo cp "$GC_PATH/etc/exordos_universal_agent/logging.yaml" /etc/exordos_univers
231231
# 1) The bootstrap script will transfer the data to the data disk
232232
# 2) It's speed up the first run since the migrations are already applied.
233233
# 3) It's allows to debug the migrations at build time.
234+
OS_DB__CONNECTION_URL="postgresql://$GC_PG_USER:$GC_PG_PASS@127.0.0.1:5432/$GC_PG_DB" ra-apply-migration --path "$GC_PATH/.venv/lib/python3.14/site-packages/gcl_sdk/migrations"
234235
OS_DB__CONNECTION_URL="postgresql://$GC_PG_USER:$GC_PG_PASS@127.0.0.1:5432/$GC_PG_DB" ra-apply-migration --path "$GC_PATH/migrations"
235236

236237
deactivate

migrations/0000-init-compute-tables-0234eb.py

Lines changed: 0 additions & 139 deletions
This file was deleted.

migrations/0000-init-config-tables-9a7b58.py

Lines changed: 0 additions & 42 deletions
This file was deleted.

migrations/0000-init-discovery-tables-907a68.py

Lines changed: 0 additions & 42 deletions
This file was deleted.

migrations/0000-init-elements-tables-fe8bdb.py

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)