Add LegacyJID table creation at startup
darcs-hash:20070616194628-86b55-94d68790fc2d5d546a8ceb519aa4eabd88792a8f.gz
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
##
|
||||
|
||||
from jcl.runner import JCLRunner
|
||||
from jcl.model.account import LegacyJID
|
||||
|
||||
from jmc.model.account import MailAccount, IMAPAccount, POP3Account, SMTPAccount
|
||||
from jmc.jabber.component import MailComponent
|
||||
@@ -45,10 +46,11 @@ class JMCRunner(JCLRunner):
|
||||
|
||||
def setup_db(self):
|
||||
JCLRunner.setup_db(self)
|
||||
MailAccount.createTable(ifNotExists = True)
|
||||
IMAPAccount.createTable(ifNotExists = True)
|
||||
POP3Account.createTable(ifNotExists = True)
|
||||
SMTPAccount.createTable(ifNotExists = True)
|
||||
MailAccount.createTable(ifNotExists=True)
|
||||
IMAPAccount.createTable(ifNotExists=True)
|
||||
POP3Account.createTable(ifNotExists=True)
|
||||
SMTPAccount.createTable(ifNotExists=True)
|
||||
LegacyJID.createTable(ifNotExists=True)
|
||||
|
||||
def run(self):
|
||||
def run_func():
|
||||
|
||||
Reference in New Issue
Block a user