Files
oc-server3/htdocs/doc/sql/stored-proc/maintain-114.inc.php
following 7c007d564a improved trigger/sp handling of database versioning
- skip dbsv-update if triggers/sp are not installed (yet)
- added safeguard against downgrading to old trigger/sp versions
2013-06-27 21:59:38 +02:00

19 lines
570 B
PHP

<?php
/***************************************************************************
Unicode Reminder メモ
initialize trigger version function
***************************************************************************/
// We run this via maintain.php instead of dbsv-update.php because the
// latter one has no sufficient privileges yet for updating functions
// (should be changed / may have been changed when you are reading this.)
sql_dropFunction('dbsvTriggerVersion');
sql("
CREATE FUNCTION `dbsvTriggerVersion` () RETURNS INT
RETURN 114");
?>