Update DB with latest 30/87030/1
authorDeterme, Sebastien (sd378r) <sebastien.determe@intl.att.com>
Mon, 6 May 2019 12:33:22 +0000 (14:33 +0200)
committerDeterme, Sebastien (sd378r) <sebastien.determe@intl.att.com>
Mon, 6 May 2019 12:33:22 +0000 (14:33 +0200)
Update DB with latest change for loop objects

Issue-ID: CLAMP-368
Change-Id: Iad91362560a987a170a95e9b3959e1352296e610
Signed-off-by: Determe, Sebastien (sd378r) <sebastien.determe@intl.att.com>
kubernetes/clamp/charts/mariadb/resources/config/mariadb/docker-entrypoint-initdb.d/bulkload/create-tables.sql

index 8e51f62..5d6f14f 100644 (file)
@@ -22,7 +22,7 @@
        id bigint not null,
         log_instant datetime(6) not null,
         log_type varchar(255) not null,
-        message varchar(255) not null,
+        message MEDIUMTEXT not null,
         loop_id varchar(255) not null,
         primary key (id)
     ) engine=InnoDB;
         primary key (name)
     ) engine=InnoDB;
 
-    alter table loop_logs
-       add constraint FK1j0cda46aickcaoxqoo34khg2
-       foreign key (loop_id)
+    alter table loop_logs 
+       add constraint FK1j0cda46aickcaoxqoo34khg2 
+       foreign key (loop_id) 
        references loops (name);
 
-    alter table loops_microservicepolicies
-       add constraint FKem7tp1cdlpwe28av7ef91j1yl
-       foreign key (microservicepolicy_id)
+    alter table loops_microservicepolicies 
+       add constraint FKem7tp1cdlpwe28av7ef91j1yl 
+       foreign key (microservicepolicy_id) 
        references micro_service_policies (name);
 
-    alter table loops_microservicepolicies
-       add constraint FKsvx91jekgdkfh34iaxtjfgebt
-       foreign key (loop_id)
+    alter table loops_microservicepolicies 
+       add constraint FKsvx91jekgdkfh34iaxtjfgebt 
+       foreign key (loop_id) 
        references loops (name);
 
-    alter table operational_policies
-       add constraint FK1ddoggk9ni2bnqighv6ecmuwu
-       foreign key (loop_id)
+    alter table operational_policies 
+       add constraint FK1ddoggk9ni2bnqighv6ecmuwu 
+       foreign key (loop_id) 
        references loops (name);