Skip to content

Commit

Permalink
Fix migrations issue with 'branch' column (#187)
Browse files Browse the repository at this point in the history
* Fix migrations issue "blob/text column 'branch' used in key specification without a key length" by changing the 'branch' column from TextField to CharField.

* Fix formatting.
  • Loading branch information
PavelSafronov authored Dec 19, 2022
1 parent ecb3bf6 commit 281fd25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nautobot_version_control/migrations/0002_branchmeta.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Migration(migrations.Migration):
migrations.CreateModel(
name="BranchMeta",
fields=[
("branch", models.TextField(primary_key=True, serialize=False)),
("branch", models.CharField(max_length=240, primary_key=True, serialize=False)),
("source_branch", models.TextField()),
("created", models.DateTimeField(auto_now_add=True, null=True)),
(
Expand Down

0 comments on commit 281fd25

Please sign in to comment.