Jeremy Stretch
179c06ec20
Closes #19627 : Object change migrators ( #19628 )
...
* Initial work on ObjectChange data migrations
* Fix migration bug
* Add migrators for MAC address assignments
* Update reverting kwarg; allow pop() to fail
* Cross-reference MAC address migrators
* Split migrator logic across migrations
* Add missing migrator
2025-06-05 11:47:59 -04:00
bctiemann
6b9b5c4184
Merge pull request #19456 from netbox-community/19444-contact-groups-changelog
...
Fixes #19444 : Fix change logging for contact group assignments
2025-05-13 11:39:59 -04:00
Jeremy Stretch
abeed474f6
Fixes #19444 : Fix changeloggin for contact group assignments
2025-05-09 14:21:02 -04:00
Jeremy Stretch
76aa255f07
Fixes #19440 : Ensure data migrations use the correct database connection
2025-05-08 14:53:52 -04:00
bctiemann
958dcca8d6
Fix migration conflict in tenancy ( #18957 )
2025-03-19 09:38:10 -05:00
bctiemann
cd10087b2b
Merge pull request #18859 from netbox-community/17602-comments-field-for-nested-models
...
Closes #17602 : adds comments field to NestedGroupModel children
2025-03-19 09:50:11 -04:00
Arthur Hanson
af5ec19430
17170 Add ability to add contacts to multiple contact groups ( #18885 )
...
* 17170 Allow multiple Group assignments for Contacts
* 17170 update docs
* 17170 update api, detail view, graphql
* 17170 fixes
* 17170 fixes
* 17170 fixes
* 17170 fixes
* 17170 fixes
* 17170 fixes
* 17170 fix bulk import
* 17170 test fixes
* 17170 test fixes
* 17170 test fixes
* 17178 review changes
* 17178 review changes
* 17178 review changes
* 17178 review changes
* 17178 review changes
* 17178 review changes
* 17170 update migration
* 17170 bulk edit form
2025-03-18 14:05:02 -04:00
Jason Novinger
b45e256f27
Removes banner from new migrations
2025-03-13 15:43:32 -05:00
Jason Novinger
ae7a47ca60
Adds comments field to abstract NestedGroupModel and associated migrations
...
Models affected:
- dcim: `Location`, `Region`, `SiteGroup`
- tenancy`: `ContactGroup`, `TenantGroup`
- wireless: `WirelessLANGroup`
2025-03-13 11:52:06 -05:00
bctiemann
bbf4eea76c
Fixes : #18808 - Fix incorrect dependencies on squashed migrations ( #18827 )
2025-03-07 10:20:34 -08:00
Jeremy Stretch
343a4af591
Closes #18022 : Extend linter (ruff) to enforce line length limit (120 chars) ( #18067 )
...
* Enable E501 rule
* Configure ruff formatter
* Reformat migration files to fix line length violations
* Fix various E501 errors
* Move table template code to template_code.py & ignore E501 errors
* Reformat raw SQL
2024-11-21 15:58:11 -05:00
Arthur Hanson
6ab0792f02
Closes #11279 : Replace _name natural key sorting with collation ( #18009 )
...
* 11279 add collation
* 11279 add collation
* 11279 add collation
* 11279 add collation
* 11279 fix tables /tests
* 11279 fix tests
* 11279 refactor VirtualDisk
* Clean up migrations
* Misc cleanup
* Correct errant file inclusion
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2024-11-15 09:32:09 -05:00
Jeremy Stretch
ef1fdf0a01
Closes #17761 : Store empty CharField choices as null
2024-10-21 13:12:05 -04:00
Jeremy Stretch
5f43eabab1
Rename ContactAssignment.content_type to object_type
2024-03-04 08:33:44 -05:00
Jeremy Stretch
74e67afa41
Merge branch 'develop' into feature
2024-02-05 14:38:26 -05:00
Jeremy Stretch
b554e70eda
Squash migrations
2024-01-25 12:35:04 -05:00
Jeremy Stretch
222388b988
Revert "Closes #13647 : Squash all migrations prior to v3.7 ( #14853 )"
...
This reverts commit 874685fd6f .
2024-01-22 13:15:43 -05:00
Jeremy Stretch
874685fd6f
Closes #13647 : Squash all migrations prior to v3.7 ( #14853 )
...
* Regenerate pre-v3.7 migrations
* Annotate replaced migrations
* Rename dependencies; remove FeatureQuery references
* Add missed replacement
2024-01-19 13:55:22 -05:00
Jeremy Stretch
5de2dea8a6
Fixes #14816 : Ensure default contact assignment ordering is consistent
2024-01-17 13:29:04 -05:00
Jeremy Stretch
b532435a6d
Closes #14436 : Add indexes for all GenericForeignKey fields ( #14463 )
...
* Closes #14436 : Add PostgreSQL indexes for all GenericForeignKeys
* Add note about GFK indexes to developer docs
2023-12-07 14:02:51 -05:00
Jeremy Stretch
2562c8745c
Closes #14156 : Add custom field support for contact assignments
2023-11-09 16:10:14 -05:00
Abhimanyu Saharan
cbf4b43b35
Adds tags on contact assignment ( #13328 )
...
* adds tags on contact assignments #12882
* updated migration
* added tags on import form
* adds TagsMixin on ContactAssignmentType #12882
* Misc cleanup
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-08-01 11:52:14 -04:00
jeremystretch
8a08d3621b
Closes #10374 : Require unique tenant names & slugs per group (not globally)
2023-02-28 20:03:41 -05:00
Jeremy Stretch
bc6b5bc4be
Closes #10545 : Standardize description & comment fields on primary models ( #10834 )
...
* Standardize description & comments fields on primary models
* Update REST API serializers
* Update forms
* Update tables
* Update templates
2022-11-04 08:28:09 -04:00
jeremystretch
e2f5ee661a
Clean up redundant NestedGroupModel, OrganizationalModel fields
2022-11-03 13:59:44 -04:00
Arthur Hanson
af8bb0c4b9
10348 add decimal custom field ( #10422 )
...
* 10348 add decimal custom field
* 10348 fix tests
* 10348 add documentation
* Rearrange custom fields to be ordered consistently
* Rename number_field to integer_field for clarity
* Clean up validation logic
* Apply suggested changes from PR
* Store decimal custom field values natively
* Fix filter test
* Update custom field model migrations to use new encoder
Co-authored-by: jeremystretch <jstretch@ns1.com >
2022-09-30 16:03:24 -04:00
jeremystretch
f51415cf2c
Replace unique_together with UniqueConstraints
2022-09-27 15:35:24 -04:00
jeremystretch
c1b7f09530
Ensure legacy data checks run before other migrations
2022-04-05 15:56:21 -04:00
jeremystretch
cdacd2a951
Closes #8593 : Add link field to contact model
2022-03-30 16:19:12 -04:00
jeremystretch
272d6e7437
Closes #8463 : Change the created field on all change-logged models from date to datetime
2022-02-08 14:41:44 -05:00
jeremystretch
e4abbfb2c6
Closes #8454 : Set DEFAULT_AUTO_FIELD to BigAutoField
2022-01-25 17:37:06 -05:00
jeremystretch
571e9801f3
Closes #8195 : Ensure all GenericForeignKey ID fields employ PositiveBigIntegerField
2022-01-24 16:02:54 -05:00
jeremystretch
cfb3897047
Add tags to organizational & nested group models
2021-10-21 10:51:02 -04:00
jeremystretch
b44a5ea609
Prevent duplicate contact assignments
2021-10-18 16:33:31 -04:00
jeremystretch
f485a47b48
Tweak uniqueness constraints
2021-10-18 15:41:29 -04:00
jeremystretch
2e78568d4d
Initial work on contacts
2021-10-18 13:59:05 -04:00
jeremystretch
e738ff2fa7
Closes #6988 : Order tenants alphabetically without regard to group assignment
2021-09-15 14:56:20 -04:00
jeremystretch
3387282de4
Resolve migration dependencies
2021-07-09 11:51:42 -04:00
jeremystretch
c82470e4df
Add re-initialized migrations for v2.11.0
2021-07-09 11:11:21 -04:00
jeremystretch
4383425060
Delete pre-2.11.0 migrations
2021-07-09 10:57:07 -04:00
Jeremy Stretch
1dcd857ca6
Closes #5370 : Extend custom field support to organizational models
2021-02-26 16:25:37 -05:00
Jeremy Stretch
7e6cb9d186
Closes #1638 : Migrate all primary keys to 64-bit integers
2021-02-26 16:12:52 -05:00
Jeremy Stretch
bec7ea7072
Standardize model types based on function
2021-02-24 21:01:16 -05:00
Jeremy Stretch
c9c8d337a0
Closes #5011 : Standardized name field lengths across all models
2020-10-15 15:37:34 -04:00
Jeremy Stretch
5b3de8defe
Use DjangoJSONEncoder for encoding custom field data
2020-08-25 13:57:18 -04:00
Jeremy Stretch
879166d939
Initial work on reimplementing custom fields
2020-08-21 15:16:33 -04:00
Jeremy Stretch
6e832de4a9
Remove squashed migrations
2020-04-29 09:31:52 -04:00
Jeremy Stretch
9f5b138b0f
Add migrations for description fields
2020-03-13 16:35:36 -04:00
Jeremy Stretch
45f6ea211d
Implement support for nested TenantGroups
2020-03-11 21:12:55 -04:00
Jeremy Stretch
2615906526
Squashed all migrations
2020-01-14 11:06:05 -05:00