aboutsummaryrefslogtreecommitdiffstats
path: root/bsfs/apps/migrate.py
diff options
context:
space:
mode:
authorMatthias Baumgartner <dev@igsor.net>2023-01-12 10:17:07 +0100
committerMatthias Baumgartner <dev@igsor.net>2023-01-12 10:17:07 +0100
commit6b3e32b29799a8143e8ce9d20c5f27e3e166b9bb (patch)
treefac9c7de8e8dcf202c1aff9fd76c5bfe9626eb31 /bsfs/apps/migrate.py
parent3940cb3c79937a431ba2ae3b57fd0c6c2ccfff33 (diff)
downloadbsfs-6b3e32b29799a8143e8ce9d20c5f27e3e166b9bb.tar.gz
bsfs-6b3e32b29799a8143e8ce9d20c5f27e3e166b9bb.tar.bz2
bsfs-6b3e32b29799a8143e8ce9d20c5f27e3e166b9bb.zip
changed path to from_string in clients
Diffstat (limited to 'bsfs/apps/migrate.py')
-rw-r--r--bsfs/apps/migrate.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bsfs/apps/migrate.py b/bsfs/apps/migrate.py
index 91c1661..b9d019f 100644
--- a/bsfs/apps/migrate.py
+++ b/bsfs/apps/migrate.py
@@ -42,15 +42,15 @@ def main(argv):
graph = bsfs.Open(config)
# initialize schema
- schema = bsfs.schema.Schema.Empty()
+ schema = bsfs.schema.Schema()
if len(args.schema) == 0:
# assemble schema from standard input
- schema = schema + bsfs.schema.Schema.from_string(sys.stdin.read())
+ schema = schema + bsfs.schema.from_string(sys.stdin.read())
else:
# assemble schema from input files
for pth in args.schema:
with open(pth, mode='rt', encoding='UTF-8') as ifile:
- schema = schema + bsfs.schema.Schema.from_string(ifile.read())
+ schema = schema + bsfs.schema.from_string(ifile.read())
# migrate schema
graph.migrate(schema, not args.remove)