barredterra
b553ed98d8
refactor: inline immediately returned variable
...
Inline a variable to a return in the case when the
variable being declared is immediately returned
2023-08-08 18:09:49 +02:00
Ankush Menat
9b2283092e
test: another test case for index duplication
2022-12-15 14:11:26 +05:30
Ankush Menat
e437d0aca2
test: test index after col change too
2022-12-15 13:39:25 +05:30
Ankush Menat
8df845ca35
fix: duplicate unique index when column is altered
2022-12-15 13:36:28 +05:30
Ankush Menat
d27ea5e6da
test: unique index on install and alter
...
There should always be 1 unique index.
2022-12-15 13:36:28 +05:30
phot0n
82d0faf3d2
test: use middle_name instead of restrict_ip in test_index_and_unique_constraints
2022-09-19 18:38:47 +05:30
Ankush Menat
3e2d2a703a
test: Use FrappeTestCase everywhere
2022-08-17 16:39:42 +05:30
Ankush Menat
81b37cb7d2
refactor: clean up code to py310 supported features ( #17367 )
...
refactor: clean up code to py39+ supported syntax
- f-strings instead of format
- latest typing support instead of pre 3.9 TitleCase
- remove UTF-8 declarations.
- many more changes
Powered by https://github.com/asottile/pyupgrade/ + manual cleanups
2022-07-01 11:51:05 +05:30
Suraj Shetty
c0c5b2ebdd
style: format all python files using black ( #16453 )
...
Co-authored-by: Frappe Bot <developers@frappe.io>
2022-04-12 10:59:25 +05:30
phot0n
266e1f95ed
chore: adding back idx column
...
This is needed for ordering in display of links as it keeps
track of the clicks on a particular link item
2022-02-07 16:40:01 +05:30
phot0n
b31f3c24f6
refactor: remove parent, parenttype, parentfield, idx columns from non-child table doctypes
...
* feat: add parent, parenttype, idx, parentfield columns to doctypes when transitioning from normal -> child table
* fix: remove parent, parenttype, parentfield, idx from DocType DocType
2022-02-07 15:12:37 +05:30
Ankush Menat
e5eca8232f
fix: dont auto drop manually created index on text types ( #15739 )
2022-01-26 17:47:30 +05:30
Suraj Shetty
72af9c7366
test: Fix test_index_and_unique_constraints
2022-01-23 22:59:13 +05:30
Suraj Shetty
b3f9e8e2cf
test: Add cases to validate index and unique constraints
2022-01-21 21:20:47 +05:30
Rushabh Mehta
8a198f363b
fix(default): cast as string as required
2020-10-26 10:02:04 +05:30
Shivam Mishra
7696f11e3c
feat: update test to check DATA to Text change
2020-04-15 13:24:01 +05:30
Suraj Shetty
bf69b98cba
test: Set docstatus type as Check
2020-03-21 18:24:15 +05:30
Suraj Shetty
641580a300
test: Add a fallback default
2020-03-21 18:11:42 +05:30
Suraj Shetty
8f8e361766
style: Fix formatting issues
2020-03-21 17:45:39 +05:30
Suraj Shetty
739f061871
test: Add test for frappe.db.updatedb
2020-03-21 12:30:54 +05:30