Skip to content

Commit 87190de

Browse files
committed
squash migrations
1 parent 3b31dde commit 87190de

82 files changed

Lines changed: 1539 additions & 8298 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.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ bootstrap:
1919
exordos bootstrap -i output -f -m core --admin-password admin --cidr 10.20.0.0/22
2020

2121
delete_core:
22-
exordos realms d local
22+
exordos realms d exordos-core
2323

2424
add_ssh_keys:
2525
exordos secret ssh_keys add --current-realm --target_public_key $(SSH_KEY)

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)