abhishek
278883edb0
fix: missing migration hash column
2021-10-11 17:23:17 +05:30
Aradhya-Tripathi
fe7b45c068
fix: fixing safeqb in server scripts
2021-10-11 14:01:17 +05:30
Gavin D'souza
4e7be5b3ec
Merge branch 'develop' of github.com:frappe/frappe into at/safeqb
2021-10-11 12:45:03 +05:30
Gavin D'souza
cfa2d65394
refactor(safe_exec): Manage in-safe frappe.db.sql
...
* Check if flag in_safe_exec to check if SELECT query in frappe.db.sql
* Get rid of read_sql...refactor logic
* Enable frappe.qb just like that ;)
* Add support fro *args in .run
2021-10-11 12:28:36 +05:30
Aradhya-Tripathi
f0010439c7
style: formatted code
2021-10-05 15:54:27 +05:30
Aradhya-Tripathi
25277e02da
fix: Fixed get_values
2021-10-05 15:48:52 +05:30
Aradhya-Tripathi
a31f23bee9
Merge branch 'develop' of https://github.com/Aradhya-Tripathi/frappe into at-refactor
2021-09-30 21:42:09 +05:30
Sagar Vora
8a4ca8530e
refactor: setup_database for mariadb
2021-09-24 17:55:28 +05:30
leela
a76445bcf5
fix: use decimal digits precision 9 instead of 6 while creating schema
...
Currently we use DECIMAL(18, 6) datatype for float, currency and
percent. But in the system settings we provide a configuration to change the
precision up to 9 digits. This obviously does not work because we do not
store 9 digit precision in database. Fixed by changing the decimal
datatype scale.
2021-09-22 16:07:06 +05:30
Aradhya-Tripathi
e4724f06fc
style: removed print statements
2021-09-20 23:29:23 +05:30
Aradhya-Tripathi
7f8128b27c
fix: added Column in aggregation
2021-09-20 23:00:20 +05:30
Aradhya-Tripathi
5ae95cd001
refactor: moved get_condition to query class
2021-09-20 22:58:41 +05:30
Aradhya-Tripathi
0a09f93889
refactor: moved non-instance specific functions out of the class
2021-09-20 22:55:32 +05:30
Aradhya-Tripathi
8c45157fea
feat: added aggregation using build_conditions
2021-09-20 22:52:14 +05:30
Aradhya-Tripathi
4f7446c722
refactor: changed return_query to run in database.py
2021-09-20 22:48:51 +05:30
Aradhya-Tripathi
73eb7806a8
refactor: removed aggregation from database.py
...
refactor: moved aggregate to frappe.query
2021-09-20 22:47:06 +05:30
Aradhya-Tripathi
1c2e470792
fix: fixed strings and integer representation in build_conditions
2021-09-20 22:40:20 +05:30
Aradhya-Tripathi
a726c0f7e8
feat: Added support for list of lists
2021-09-20 22:35:06 +05:30
Aradhya-Tripathi
4e75489f4c
feat: added support for Criterion objects
2021-09-20 22:34:38 +05:30
Aradhya-Tripathi
9c3229018e
refactor: moved count to use frappe.qb
2021-09-20 22:26:11 +05:30
Aradhya-Tripathi
ead9369586
fix(minor): fixed orderby in build_conditions
2021-09-20 22:25:18 +05:30
Aradhya-Tripathi
1af8f5289f
feat: added support for orderby
2021-09-20 22:22:32 +05:30
Aradhya-Tripathi
3bd665ddf6
refactor: using frappe.qb for frappe.db.get_values
2021-09-20 22:21:54 +05:30
Aradhya-Tripathi
3fefc6a10d
fix: added delete without filters
2021-09-20 22:21:24 +05:30
Aradhya-Tripathi
a738f8ba7b
wip: adding support for sql functions in frappe ORM
2021-09-20 22:21:00 +05:30
Aradhya-Tripathi
ae0c5ee291
refactor: moved to frappe.qb in frappe.db.delete
2021-09-20 22:20:40 +05:30
Aradhya-Tripathi
f36808e4cc
refactor: using Query for frappe.db.delete
2021-09-20 22:20:25 +05:30
Aradhya-Tripathi
1e6b30b711
refactor: shifted build_conditions to query module
2021-09-20 22:19:55 +05:30
Samuel Braun
ac9ab3bd95
fix(database): Fixed sql convention inconsistency ( #14230 )
2021-09-16 17:50:22 +05:30
gavin
4041442e6a
Merge pull request #13955 from gavindsouza/trim-db
...
feat: Site Maintenance commands
2021-09-15 17:08:40 +05:30
gavin
fc8b253916
Merge pull request #14197 from gavindsouza/misc-fixes-1
...
fix: Misc fixes
2021-09-15 12:55:06 +05:30
Gavin D'souza
f1d2886328
Merge branch 'develop' of github.com:frappe/frappe into mariadb-10_6
2021-09-14 22:10:24 +05:30
Gavin D'souza
3adc459e4d
Merge branch 'develop' of github.com:frappe/frappe into trim-db
2021-09-14 21:53:21 +05:30
Gavin D'souza
713eaf6ac9
chore: Raise NotImplementedError in base Database class
...
Methods that have to be overridden should throw NoteImplementedError.
Helps during development :')
2021-09-14 18:36:01 +05:30
Gavin D'souza
1545ad65d1
fix: Don't need postgres to use Frappe
...
* Made code DRY-er by using obscure frappe.db.is_data_too_long
* Python would run psycopg import line which would check if postgres is
installed. Sites just wanting to chill w MariaDB would also need
Postgres to be installed to get Frappe running. Fixes https://github.com/frappe/frappe/issues/14193
2021-09-14 13:06:59 +05:30
Gavin D'souza
f2dfac684f
chore: Improve readability for Schema.create
2021-09-09 15:49:24 +05:30
Abhishek Saxena
1d02d26a2b
Merge branch 'develop' into aks-fix-postgres
2021-09-07 17:42:03 +05:30
Your Name
74d6ed32d6
test: add frappe.db.add_index
2021-09-07 17:40:55 +05:30
Gavin D'souza
07c5d0a28c
fix(db_pg): Strip index size from each field
2021-09-07 11:27:38 +05:30
Your Name
08b7430ba2
fix: change fieldname for postgres create index
2021-09-06 16:41:50 +05:30
Gavin D'souza
43459749e2
Merge branch 'develop' into trim-db
2021-09-06 11:35:59 +05:30
Rushabh Mehta
d807e3b1e2
fix(minor): fix for aggregate functions, use special query
2021-09-06 09:11:58 +05:30
Rushabh Mehta
5befc80cd4
fix(minor): linting
2021-09-05 22:30:09 +05:30
Rushabh Mehta
20dea90670
feat(minor): Packages! also cleanup of DocField and other minor fixes
2021-09-05 22:01:55 +05:30
Gavin D'souza
62593c49fb
refactor: Rename arg table to doctype
...
This change was made to be "more accurate" about how the internal magic handled
2021-09-03 20:14:40 +05:30
Gavin D'souza
3446026555
chore: Update header: license.txt => LICENSE
...
The license.txt file has been replaced with LICENSE for quite a while
now. INAL but it didn't seem accurate to say "hey, checkout license.txt
although there's no such file". Apart from this, there were
inconsistencies in the headers altogether...this change brings
consistency.
2021-09-03 12:02:59 +05:30
Gavin D'souza
b88eca73c3
Merge branch 'develop' into mariadb-10_6
2021-09-02 15:34:29 +05:30
Gavin D'souza
ed6533f737
fix: Use cast in favour of cast_fieldtype
...
Use newly introduced casting util for Python-Frappe types mapping
2021-08-20 12:37:15 +05:30
Gavin D'souza
cb034e4c52
fix: Consistent return types in cast_fieldtype
...
Note: BREAKING CHANGE
2021-08-20 12:08:39 +05:30
Gavin D'souza
623998c787
fix(db): Cast single dt field only if value is truthy
2021-08-20 11:05:03 +05:30