mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-13 15:32:15 +09:00
Support global routes
This commit is contained in:
parent
7e47c1cb8a
commit
c8a6b8de79
8 changed files with 94 additions and 41 deletions
|
|
@ -135,6 +135,7 @@ class module extends ModuleObject
|
|||
// check route columns in action_forward table
|
||||
if(!$oDB->isColumnExists('action_forward', 'route_regexp')) return true;
|
||||
if(!$oDB->isColumnExists('action_forward', 'route_config')) return true;
|
||||
if(!$oDB->isColumnExists('action_forward', 'global_route')) return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -462,6 +463,10 @@ class module extends ModuleObject
|
|||
{
|
||||
$oDB->addColumn('action_forward', 'route_config', 'text');
|
||||
}
|
||||
if(!$oDB->isColumnExists('action_forward', 'global_route'))
|
||||
{
|
||||
$oDB->addColumn('action_forward', 'global_route', 'char', 1, 'N', true);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue