diff --git a/dao/src/test/resources/sql/drop-all-tables.sql b/dao/src/test/resources/sql/drop-all-tables.sql index 610653d565..49a3774e51 100644 --- a/dao/src/test/resources/sql/drop-all-tables.sql +++ b/dao/src/test/resources/sql/drop-all-tables.sql @@ -1,20 +1,20 @@ -TRUNCATE TABLE admin_settings; -TRUNCATE TABLE alarm; -TRUNCATE TABLE asset; -TRUNCATE TABLE attribute_kv; -TRUNCATE TABLE component_descriptor; -TRUNCATE TABLE customer; -TRUNCATE TABLE dashboard; -TRUNCATE TABLE device; -TRUNCATE TABLE device_credentials; -TRUNCATE TABLE event; -TRUNCATE TABLE plugin; -TRUNCATE TABLE relation; -TRUNCATE TABLE rule; -TRUNCATE TABLE tb_user; -TRUNCATE TABLE tenant; -TRUNCATE TABLE ts_kv; -TRUNCATE TABLE ts_kv_latest; -TRUNCATE TABLE user_credentials; -TRUNCATE TABLE widget_type; -TRUNCATE TABLE widgets_bundle; \ No newline at end of file +DROP TABLE IF EXISTS admin_settings; +DROP TABLE IF EXISTS alarm; +DROP TABLE IF EXISTS asset; +DROP TABLE IF EXISTS attribute_kv; +DROP TABLE IF EXISTS component_descriptor; +DROP TABLE IF EXISTS customer; +DROP TABLE IF EXISTS dashboard; +DROP TABLE IF EXISTS device; +DROP TABLE IF EXISTS device_credentials; +DROP TABLE IF EXISTS event; +DROP TABLE IF EXISTS plugin; +DROP TABLE IF EXISTS relation; +DROP TABLE IF EXISTS rule; +DROP TABLE IF EXISTS tb_user; +DROP TABLE IF EXISTS tenant; +DROP TABLE IF EXISTS ts_kv; +DROP TABLE IF EXISTS ts_kv_latest; +DROP TABLE IF EXISTS user_credentials; +DROP TABLE IF EXISTS widget_type; +DROP TABLE IF EXISTS widgets_bundle; \ No newline at end of file