Commit graph

79 commits

Author SHA1 Message Date
Suraj Shetty
51bae0df50 fix(translations): Incorrect syntax 2020-01-29 15:35:28 +05:30
Mohammed Safwat Abu Kwaik
4ac83a0cc8 fix: allow setting custom database schema in site_config (#9182)
* Update database.py

* Update frappe/database/postgres/database.py

Co-Authored-By: Chinmay Pai <chinmaydpai@gmail.com>

Co-authored-by: Chinmay Pai <chinmaydpai@gmail.com>
2020-01-02 22:20:04 +05:30
deepeshgarg007
33ec59ad53 Merge barnch develop into mandatory-depends-on 2019-12-12 20:58:27 +05:30
Oshosanya Michael
8a11fb57cd feat: Allow full database config on creating site (#8874)
* Allow setting db port on install

* Allow setting db port on install

* Allow full db config on creating site

* bug fix

* bug fix

* Escape character

* Update frappe/commands/site.py

allow only integer argument

Co-Authored-By: Chinmay Pai <chinmaydpai@gmail.com>

* Update frappe/database/db_manager.py

No need to escape integer variable

Co-Authored-By: Chinmay Pai <chinmaydpai@gmail.com>

* cast port to integer to surpress pymysql error

* cast port to string to surpress pymysql error

* Removed type casting
2019-12-12 13:17:07 +05:30
prssanna
1026800ee0 feat: add mandatory_depends_on and read_only_depends_on to docfield 2019-12-04 21:34:49 +05:30
Faris Ansari
488c68df96
Merge branch 'develop' into refactor-scheduler 2019-12-02 13:16:45 +05:30
Faris Ansari
2dac4f8432
fix(db.sql): Print query in debug mode (#8767) 2019-11-07 17:12:11 +05:30
Rushabh Mehta
fea34e3f6b fix(tests): test_scheduler 2019-11-07 12:14:09 +05:30
Rushabh Mehta
c583be6f33 fix(scheduler): implement queue peeking 2019-11-07 12:14:09 +05:30
Rushabh Mehta
0035772f8f fix(tests) 2019-11-07 12:14:09 +05:30
Rushabh Mehta
3e4e6d4b3f feat(doctype link): add links to doctype for link dashboard 2019-11-07 12:14:09 +05:30
Rushabh Mehta
34b4b069ba feat(scheduler): log scheduler events 2019-11-07 12:14:09 +05:30
Himanshu
bf57a1d79a Patch(Tags): Check if column exists (#8682)
* fix: tags patch

* fix: auto_commit_on_many_writes

* fix: check if tag exists

* fix: check if tag or tag link exists

* fix: check if column exists

* fix: set autocommit false

* fix: use ignore in insert query for bulk insert

* fix: add option to ignore duplicates
2019-10-29 09:52:38 +00:00
Suraj Shetty
86263e05f4 perf: Cache db columns to avoid redundant database calls (#8543)
* perf: Cache db columns to avoid redundant database calls

* fix: Move cache clearing code from doctype to schema.py

* fix: self.table_name instead of self.name

* fix: Cache columns in  "table_columns" key

`table_columns` was cached in meta but columns were also getting accessed
directly using frappe.db.get_table_columns. Now, it is cached at
`frappe.db` layer

Co-authored-by: Suraj Shetty <surajshetty3416@gmail.com>
2019-10-07 13:39:40 +00:00
Faris Ansari
f926a2aa48
Merge pull request #8488 from hrwX/global_tags
feat(Desk): Global Tags
2019-10-07 19:05:28 +05:30
John Clarke
118bba4a83
report the name of the DocType when the associated table is missing
Reported here https://discuss.erpnext.com/t/bench-migrate-fails-with-pymysql-err-programmingerror-it-doesnt-print-what-is-the-error/53540
2019-10-06 10:34:19 -06:00
Himanshu Warekar
02cebdd7d3 fix: use frappe.tags 2019-10-03 16:43:36 +05:30
Himanshu Warekar
b7196f124c feat: use tag link for global tags 2019-09-24 23:25:04 +05:30
Himanshu Warekar
f6d1ce2194 feat: Global Tags 2019-09-24 01:03:11 +05:30
Suraj Shetty
7fe35a2d3c
fix: set default value in set_value as None to avoid error.
```
frappe.db.set_value('Call Log', log.name, {
			fieldname: doc.name,
			display_name_field: doc.get_title()
		}, update_modified=False)
```
this code should not fail if value is not pass because value is passed in the dict.
2019-09-23 15:54:46 +05:30
Faris Ansari
c8a80a2e4d fix: frappe.db.field_exists
- field_exists didn't work correctly
- The call to field_exists itself was wrong
2019-09-19 15:41:17 +05:30
Sahil Khan
a5480c8dfc feat(custom_field): update db on updating custom field 2019-09-12 18:37:13 +05:30
Himanshu Warekar
e955361610 fix: if not db host then localhost 2019-09-11 12:15:04 +05:30
Saurabh
99671a4604 fix: handle data too long exception (#8292) 2019-09-02 23:30:10 +05:30
Faris Ansari
9cbd2b3c30 fix: Add column in framework.sql 2019-09-02 16:09:18 +05:30
Sahil Khan
9b65a7c4a1 Merge branch 'version-12-hotfix' into merge_v12_hotfix_1 2019-08-20 16:09:39 +05:30
Suraj Shetty
22103a9fdb fix: Run patch only if the db_type is mariadb 2019-08-09 15:16:29 +05:30
Suraj Shetty
d9f70b7fab fix: check_default method for column in schema.py
- This fixes the multiple creation of index for same columns

Co-authored-by: Faris Ansari <netchamp.faris@gmail.com>
2019-08-08 15:56:04 +05:30
kratos
4c5a8d41af bug fix - Postgres db connection
Missing quotes in connection string.
2019-08-08 13:22:15 +05:30
mergify[bot]
349b32943d
Merge pull request #7101 from zeroiszero/fix-rds-privileges
fix: AWS RDS privileges issue
2019-07-19 12:43:18 +00:00
Aditya Hase
6e744320ea
Update db_manager.py 2019-07-19 17:26:49 +05:30
gweecl
b472cefbd5 fix: travisCI 2019-07-19 11:14:38 +08:00
zeroiszero
60b0b1e0f7
fix: travisCI 2019-07-19 11:03:29 +08:00
zeroiszero
7fd515e0bd
keep default and use flag for rds 2019-07-18 22:33:03 +08:00
mergify[bot]
a72a9e1946
Merge pull request #7909 from netchampfaris/website-theme-fixes
fix: Website Theme UX
2019-07-17 09:39:41 +00:00
Faris Ansari
2492289eac fix: Remove redundant assignment 2019-07-17 12:42:03 +05:30
Faris Ansari
64f078a686 fix: Validation for invalid field name 2019-07-16 13:58:14 +05:30
Suraj Shetty
317714a59d fix(postgres): Remove typcasting for date 2019-07-16 13:25:16 +05:30
Anurag Mishra
570fd44248 fix: Translating Errors and Messages 2019-07-03 11:52:47 +05:30
mathieu.brunot
63cda10b9b
🐛 Use db_host to setup pgsql and close #7704
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
2019-06-14 18:52:56 +02:00
Aditya Hase
2c93dc74fe fix: Update regex for capturing touched tables from query (#7588)
Previous regex used to yield false positives and false negatives
for queries like

UPDATE tabToDo SET description = "something"

Instead of yielding "tabToDo" it used to yield "tabToDo SET".

Now two separate regexes handle single word and multi-word names
In case of multi-word surrounding quotes are a must
2019-05-29 14:51:19 +05:30
Rushabh Mehta
7e42520554 fix(minor): frappe.conf.db_type in sql exception 2019-05-28 12:29:39 +05:30
Rushabh Mehta
17c43b4e1d fix(db_type) 2019-05-24 12:06:39 +05:30
Rushabh Mehta
1c893e44c0 fix: frappe.conf.db_type -> frappe.db.db_type 2019-05-24 11:44:28 +05:30
Rushabh Mehta
2ef6af8244 fix(minor): added frappe.db.db_type 2019-05-24 09:09:46 +05:30
jibin jose
1a58c13966 fix(postgres): Make db queries postgres compatible 2019-05-20 12:31:30 +05:30
Rushabh Mehta
b19f84120c fix(link-preview): show preview only if setup and cleanup style 2019-05-16 10:24:43 +05:30
Rushabh Mehta
6157ebb4b5
Merge pull request #7281 from prssanna/link-preview
feat(desk): Link preview popover
2019-05-03 12:41:04 +05:30
jibin jose
f1044afe8c Fix postgres tests
- take postgres superuser from user iff it is not in config
2019-05-02 12:29:41 +05:30
jibin jose
63417782c9 Fix: Postgres DB setup
- Bootstrap postgres db using frappe db user not with postgres default
user
- Save postgres db password in env variable to avoid prompting of
password
- Pass the user name and password while connecting to postgres db
2019-05-02 10:31:42 +05:30