This commit is contained in:
usmannasir
2024-07-16 16:19:51 +05:00
parent 0e7cfbce80
commit e813d2c0af
2 changed files with 6 additions and 1 deletions

View File

@@ -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')

View File

@@ -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: