Skip to content

Commit

Permalink
bug fix: #1285; update length of column
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Jul 16, 2024
1 parent 0e7cfbc commit e813d2c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dockerManager/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# 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')
Expand Down
5 changes: 5 additions & 0 deletions plogical/upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -1659,6 +1659,11 @@ def dockerMigrations():
except:
pass

try:
cursor.execute('ALTER TABLE dockerManager_containers MODIFY COLUMN name VARCHAR(150);')
except:
pass

try:
connection.close()
except:
Expand Down

0 comments on commit e813d2c

Please sign in to comment.