Add colorization and logo
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
from fabric.api import env, task
|
||||
from fabric.colors import green
|
||||
|
||||
|
||||
from ..literals import DB_MYSQL
|
||||
import mysql
|
||||
@@ -9,6 +11,7 @@ def create_database():
|
||||
"""
|
||||
Create the Mayan EDMS database
|
||||
"""
|
||||
print(green('Creating Mayan EDMS database', bold=True))
|
||||
|
||||
if env.database_manager == DB_MYSQL:
|
||||
mysql.create_database()
|
||||
@@ -19,6 +22,7 @@ def drop_database():
|
||||
"""
|
||||
Drop Mayan EDMS's database
|
||||
"""
|
||||
print(green('Droping Mayan EDMS database', bold=True))
|
||||
|
||||
if env.database_manager == DB_MYSQL:
|
||||
mysql.drop_database()
|
||||
|
||||
Reference in New Issue
Block a user