Commit f30baabe authored by maoying's avatar maoying

添加安全运行天数视图

parent 2346b7dd
......@@ -260,4 +260,15 @@
END#
</sql>
</changeSet>
<changeSet author="maoying" id="1661505446-01" runAlways="true">
<comment>`create v_running_days`</comment>
<sql>
DROP VIEW IF EXISTS `v_running_days`;
CREATE ALGORITHM = UNDEFINED DEFINER = `root`@`%` SQL SECURITY DEFINER VIEW `v_running_days` AS SELECT
(
to_days(now()) - to_days('20160823')
) AS `runningDays`
</sql>
</changeSet>
</databaseChangeLog>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment