Skip to content

Commit bd2a0a2

Browse files
committed
DB name/user length to 32
1 parent 01bf9fa commit bd2a0a2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

plogical/mysqlUtilities.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ def restoreDatabaseBackup(databaseName, tempStoragePath, dbPassword, passwordChe
255255
def submitDBCreation(dbName, dbUsername, dbPassword, databaseWebsite):
256256
try:
257257

258-
if len(dbName) > 16 or len(dbUsername) > 16:
259-
raise BaseException("Length of Database name or Database user should be 16 at max.")
258+
if len(dbName) > 32 or len(dbUsername) > 32:
259+
raise BaseException("Length of Database name or Database user should be 32 at max.")
260260

261261
website = Websites.objects.get(domain=databaseWebsite)
262262

@@ -763,4 +763,4 @@ def fetchuser(databaseName):
763763

764764
except BaseException as msg:
765765
logging.CyberCPLogFileWriter.writeToFile(str(msg) + "[mysqlUtilities.fetchuser]")
766-
return 0
766+
return 0

0 commit comments

Comments
 (0)