add migrate_schemas command, alias to migrate (#23337)
This commit is contained in:
parent
affe4cc5ac
commit
f8d9977b2f
|
@ -12,6 +12,7 @@ from wcs.fields import StringField, EmailField
|
|||
import wcs.qommon.ctl
|
||||
from wcs.qommon.management.commands.collectstatic import Command as CmdCollectStatic
|
||||
from wcs.qommon.management.commands.migrate import Command as CmdMigrate
|
||||
from wcs.qommon.management.commands.migrate_schemas import Command as CmdMigrateSchemas
|
||||
from wcs.qommon.management.commands.makemessages import Command as CmdMakeMessages
|
||||
from wcs.ctl.process_bounce import CmdProcessBounce
|
||||
from wcs.ctl.rebuild_indexes import rebuild_vhost_indexes
|
||||
|
@ -60,6 +61,9 @@ def test_collectstatic(pub):
|
|||
def test_migrate(two_pubs):
|
||||
CmdMigrate().handle()
|
||||
|
||||
def test_migrate_schemas(two_pubs):
|
||||
CmdMigrateSchemas().handle()
|
||||
|
||||
def test_get_bounce_addrs():
|
||||
msg = MIMEText('Hello world')
|
||||
assert CmdProcessBounce.get_bounce_addrs(msg) is None
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
# w.c.s. - web application for online forms
|
||||
# Copyright (C) 2005-2017 Entr'ouvert
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
from .migrate import Command as MigrateCommand
|
||||
|
||||
class Command(MigrateCommand):
|
||||
help = 'Migrate databases (alias)'
|
Loading…
Reference in New Issue