use dotclear method to check version
This commit is contained in:
parent
57776fbe09
commit
b7e3a0bdec
1 changed files with 3 additions and 6 deletions
|
@ -15,10 +15,9 @@ if (!defined('DC_CONTEXT_ADMIN')) {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (version_compare(
|
if (!dcCore::app()->newVersion(
|
||||||
dcCore::app()->getVersion(basename(__DIR__)),
|
basename(__DIR__),
|
||||||
dcCore::app()->plugins->moduleInfo(basename(__DIR__), 'version'),
|
dcCore::app()->plugins->moduleInfo(basename(__DIR__), 'version')
|
||||||
'>='
|
|
||||||
)) {
|
)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -33,9 +32,7 @@ try {
|
||||||
->filesalias_disposable('smallint', 0, false, 0)
|
->filesalias_disposable('smallint', 0, false, 0)
|
||||||
|
|
||||||
->primary('pk_filesalias', 'blog_id', 'filesalias_url')
|
->primary('pk_filesalias', 'blog_id', 'filesalias_url')
|
||||||
|
|
||||||
->index('idx_filesalias_blog_id', 'btree', 'blog_id')
|
->index('idx_filesalias_blog_id', 'btree', 'blog_id')
|
||||||
|
|
||||||
->reference('fk_filesalias_blog', 'blog_id', 'blog', 'blog_id', 'cascade', 'cascade')
|
->reference('fk_filesalias_blog', 'blog_id', 'blog', 'blog_id', 'cascade', 'cascade')
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue