bug fix: https://github.com/usmannasir/cyberpanel/issues/1285; update length of column
This commit is contained in:
parent
0e7cfbce80
commit
e813d2c0af
|
|
@ -6,7 +6,7 @@ from loginSystem.models import Administrator
|
|||
|
||||
# Create your models here.
|
||||
class Containers(models.Model):
|
||||
name = models.CharField(max_length=50,unique=True)
|
||||
name = models.CharField(max_length=150,unique=True)
|
||||
cid = models.CharField(max_length=64, default='')
|
||||
admin = models.ForeignKey(Administrator, on_delete=models.CASCADE)
|
||||
image = models.CharField(max_length=50, default='unknown')
|
||||
|
|
|
|||
|
|
@ -1659,6 +1659,11 @@ CREATE TABLE `websiteFunctions_backupsv2` (`id` integer AUTO_INCREMENT NOT NULL
|
|||
except:
|
||||
pass
|
||||
|
||||
try:
|
||||
cursor.execute('ALTER TABLE dockerManager_containers MODIFY COLUMN name VARCHAR(150);')
|
||||
except:
|
||||
pass
|
||||
|
||||
try:
|
||||
connection.close()
|
||||
except:
|
||||
|
|
|
|||
Loading…
Reference in New Issue