From 8f35f5495d162e8560cb4ee23a6be7c911d8a4a8 Mon Sep 17 00:00:00 2001 From: Melanie Retter Date: Tue, 23 Aug 2016 16:43:18 +0200 Subject: [PATCH] Add db migration skripts Signed-off-by: Melanie Retter --- .../H2/V1_9_0__software_module_type_constraint__H2.sql | 2 ++ .../MYSQL/V1_9_0__software_module_type_constraint__MYSQL.sql | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 hawkbit-repository/hawkbit-repository-jpa/src/main/resources/db/migration/H2/V1_9_0__software_module_type_constraint__H2.sql create mode 100644 hawkbit-repository/hawkbit-repository-jpa/src/main/resources/db/migration/MYSQL/V1_9_0__software_module_type_constraint__MYSQL.sql diff --git a/hawkbit-repository/hawkbit-repository-jpa/src/main/resources/db/migration/H2/V1_9_0__software_module_type_constraint__H2.sql b/hawkbit-repository/hawkbit-repository-jpa/src/main/resources/db/migration/H2/V1_9_0__software_module_type_constraint__H2.sql new file mode 100644 index 000000000..88f12d65d --- /dev/null +++ b/hawkbit-repository/hawkbit-repository-jpa/src/main/resources/db/migration/H2/V1_9_0__software_module_type_constraint__H2.sql @@ -0,0 +1,2 @@ +alter table sp_software_module_type + add constraint maxAssignmentCheck check (maxAssignments > 0); \ No newline at end of file diff --git a/hawkbit-repository/hawkbit-repository-jpa/src/main/resources/db/migration/MYSQL/V1_9_0__software_module_type_constraint__MYSQL.sql b/hawkbit-repository/hawkbit-repository-jpa/src/main/resources/db/migration/MYSQL/V1_9_0__software_module_type_constraint__MYSQL.sql new file mode 100644 index 000000000..88f12d65d --- /dev/null +++ b/hawkbit-repository/hawkbit-repository-jpa/src/main/resources/db/migration/MYSQL/V1_9_0__software_module_type_constraint__MYSQL.sql @@ -0,0 +1,2 @@ +alter table sp_software_module_type + add constraint maxAssignmentCheck check (maxAssignments > 0); \ No newline at end of file