made lock sql compatible with both mysql/mariadb 33/130433/3
authorjhh <jorge.hernandez-herrero@att.com>
Wed, 24 Aug 2022 01:26:21 +0000 (20:26 -0500)
committerjhh <jorge.hernandez-herrero@att.com>
Wed, 24 Aug 2022 14:12:15 +0000 (09:12 -0500)
Issue-ID: POLICY-4329
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I784a3f8456a201262056803169204d499a4a68a2
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
feature-distributed-locking/src/main/feature/db/pooling/sql/1811-distributedlocking.upgrade.sql

index ed51879..847c44a 100644 (file)
@@ -1,7 +1,7 @@
 #  ============LICENSE_START=======================================================
 #  feature-distributed-locking
 # ================================================================================
-#  Copyright (C) 2018, 2021 AT&T Intellectual Property. All rights reserved.
+#  Copyright (C) 2018, 2021-2022 AT&T Intellectual Property. All rights reserved.
 #  ================================================================================
 #  Licensed under the Apache License, Version 2.0 (the "License");
 #  you may not use this file except in compliance with the License.
@@ -18,6 +18,6 @@
 
  set foreign_key_checks=0;
 
- ALTER TABLE pooling.locks modify if exists expirationTime timestamp default '1971-01-01 00:00:00.000000';
+ ALTER TABLE pooling.locks modify expirationTime timestamp default '1971-01-01 00:00:00.000000';
 
  set foreign_key_checks=1;