kopia lustrzana https://github.com/bugout-dev/moonstream
User prompt for migration and updated README
rodzic
1e825c5487
commit
4c86217439
|
@ -113,3 +113,14 @@ For Web3 providers `access_id` and `data_source` could be specified in headers
|
|||
```bash
|
||||
/usr/local/go/bin/go test -run ^TestCleanInactiveClientNodes$ github.com/bugout-dev/moonstream/nodes/node_balancer/cmd/nodebalancer -v -count=1
|
||||
```
|
||||
|
||||
## Migrations
|
||||
|
||||
To run migration:
|
||||
|
||||
```bash
|
||||
python migrations/migrations.py run --key 20230522 \
|
||||
--token-current-owner "$NB_CONTROLLER_TOKEN" \
|
||||
--token-new-owner "$MOONSTREAM_ADMIN_OR_OTHER_CONTROLLER" \
|
||||
--new-application-id "$MOONSTREAM_APPLICATION_ID"
|
||||
```
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
import argparse
|
||||
import csv
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
import uuid
|
||||
from typing import Any, Dict, List
|
||||
|
||||
from bugout.app import Bugout
|
||||
|
@ -26,6 +23,9 @@ def migration_20230522(
|
|||
|
||||
logger.info(f"Found {len(resources.resources)} resources")
|
||||
|
||||
while input("Do you want to continue [y/n]? ") != "y":
|
||||
return
|
||||
|
||||
cnt = 0
|
||||
for resource in resources.resources:
|
||||
resource_data = resource.resource_data
|
||||
|
|
Ładowanie…
Reference in New Issue