[SEBA-475] Generated migrations with xos-migrate
Change-Id: Id6b5b89089502121cad776ff7f7ad1f3389060e9
diff --git a/Dockerfile.synchronizer b/Dockerfile.synchronizer
index 35d80e8..ac54624 100644
--- a/Dockerfile.synchronizer
+++ b/Dockerfile.synchronizer
@@ -16,7 +16,7 @@
# xosproject/onos-synchronizer
-FROM xosproject/xos-synchronizer-base:2.1.32
+FROM xosproject/xos-synchronizer-base:2.1.50
COPY xos/synchronizer /opt/xos/synchronizers/onos
COPY VERSION /opt/xos/synchronizers/onos/
diff --git a/VERSION b/VERSION
index 280a1e3..2764583 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-2.0.12
+2.0.13-dev
diff --git a/xos/synchronizer/migrations/0001_initial.py b/xos/synchronizer/migrations/0001_initial.py
new file mode 100644
index 0000000..bf6c8fd
--- /dev/null
+++ b/xos/synchronizer/migrations/0001_initial.py
@@ -0,0 +1,81 @@
+# Copyright 2017-present Open Networking Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.11 on 2019-02-21 01:31
+from __future__ import unicode_literals
+
+import core.models.xosbase_header
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ initial = True
+
+ dependencies = [
+ ('core', '0002_initial_data'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='ONOSApp_decl',
+ fields=[
+ ('serviceinstance_decl_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='core.ServiceInstance_decl')),
+ ('app_id', models.TextField()),
+ ('dependencies', models.TextField(blank=True, help_text=b'Comma separated list of required applications', null=True)),
+ ('url', models.TextField(blank=True, help_text=b'URL at which the application is available, if it needs to be downloaded', null=True)),
+ ('version', models.TextField(blank=True, null=True)),
+ ],
+ options={
+ 'verbose_name': 'ONOS Application',
+ },
+ bases=('core.serviceinstance',),
+ ),
+ migrations.CreateModel(
+ name='ONOSService_decl',
+ fields=[
+ ('service_decl_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='core.Service_decl')),
+ ('rest_hostname', core.models.xosbase_header.StrippedCharField(max_length=255)),
+ ('rest_port', models.IntegerField(default=8181)),
+ ('rest_username', core.models.xosbase_header.StrippedCharField(default=b'karaf', max_length=255)),
+ ('rest_password', core.models.xosbase_header.StrippedCharField(default=b'karaf', max_length=255)),
+ ],
+ options={
+ 'verbose_name': 'ONOS Service',
+ },
+ bases=('core.service',),
+ ),
+ migrations.CreateModel(
+ name='ONOSApp',
+ fields=[
+ ],
+ options={
+ 'proxy': True,
+ 'indexes': [],
+ },
+ bases=('onos.onosapp_decl',),
+ ),
+ migrations.CreateModel(
+ name='ONOSService',
+ fields=[
+ ],
+ options={
+ 'proxy': True,
+ 'indexes': [],
+ },
+ bases=('onos.onosservice_decl',),
+ ),
+ ]
diff --git a/xos/synchronizer/migrations/__init__.py b/xos/synchronizer/migrations/__init__.py
new file mode 100644
index 0000000..eb28b96
--- /dev/null
+++ b/xos/synchronizer/migrations/__init__.py
@@ -0,0 +1,13 @@
+# Copyright 2017-present Open Networking Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
\ No newline at end of file