Nicolas Évrard
2fef479575
Follow PEP-0249 for Transaction and backends
...
issue4949
review19781002
2016-03-03 21:51:57 +01:00
Cédric Krier
68eca37c72
Add _update_definitions after column_rename
...
issue5325
review16001002
2016-02-15 10:07:18 +01:00
Cédric Krier
29129855ec
Add support for Python 3
...
issue3211
review7311002
2016-02-07 16:46:16 +01:00
Cédric Krier
109d0ef64f
Manage PostgreSQL schema
...
Replace usage of pg_catalog tables by information_schema to take care of user
access.
Ensure to fetch the columns information from the right schema.
Prevent to update default column values if it did not change.
Comment table and column only if the current user is the owner.
issue4924
review24291002
2015-09-04 11:16:09 +02:00
Cédric Krier
44dc331ced
Use Constraint instance in ModelSQL._sql_constraints
...
issue4814
review15491002
2015-06-22 16:57:06 +02:00
Cédric Krier
20484bb013
Fix formatting in logger calls
2015-03-05 11:32:18 +01:00
Cédric Krier
0ac0990c77
Improve logging
...
issue4458
review11781002
2015-03-02 23:39:15 +01:00
Cédric Krier
c144f8c349
Fix most flake8 errors
...
review8771002
2014-12-02 12:54:01 +01:00
Cédric Krier
fc6c6cfdda
Migration to python-sql
...
* Use python-sql
* Add convert_domain method on Fields
* Add sql_format and sql_type methods on Fields
* Allow to return a full domain for Function.searcher
* Replace static backend by dynamic get method
* Replace order_field by order_<field name> method
review1001002
2013-09-06 22:32:37 +02:00
Cédric Krier
5e01f5c068
Fix flake8
2013-02-27 22:50:31 +01:00
Cédric Krier
0fe1b93864
Active Record
2012-09-24 22:16:53 +02:00
Cédric Krier
ee3be37a36
Fix pep8 and pyflakes
2012-04-01 23:08:15 +02:00
Pierre-Louis Bonicoli
f35f3ec546
Put quotes around sequence names
...
Identifiers are quoted in trytond/backend/postgresql/table.py,
sequence names must be quoted too (see
http://www.postgresql.org/docs/8.4/static/functions-sequence.html )
issue2176
review141002
2011-10-12 15:44:00 +02:00
Cédric Krier
246d18d67f
Fix comparison of indexes
...
On MySQL the max length is 64
On PostgreSQL the max length is a build option, so we use the max length of the
known indexes
review116002
2011-09-28 18:09:30 +02:00
Cédric Krier
c5c449e1a0
Fix migration speed of dates from timestamp(0) to timestamp(6)
2011-02-16 16:03:51 +01:00
Cédric Krier
df1fd283ac
New transaction management
...
Remove cursor, user and context from methods and use Transaction instead
2010-08-19 22:01:12 +02:00
Cédric Krier
483afed26a
Catch only Exception according to PEP 352
2010-07-08 19:53:39 +02:00
Cédric Krier
b5fb4d1ef3
Refactoring by validation with pylint
2010-02-18 18:50:35 +01:00
Cédric Krier
6961c5c925
Fix typo
2010-02-08 09:36:32 +01:00
Cédric Krier
ac9c532f41
Fix wrong initialisation type of _indexes in TableHandler of PostgreSQL
...
backend
2010-02-08 09:36:10 +01:00
Cédric Krier
d68ec64069
Use column starting with "_" in alter_size to prevent naming collision
2010-01-16 14:25:05 +01:00
Cédric Krier
1a8c6f2213
Add comment on table and field for postgresql backend
2010-01-11 12:32:50 +01:00
Cédric Krier
e2f80d378c
Add timestamp field in backend
...
Improve validation of DateTime values
2009-11-10 14:00:13 +01:00
Bertrand Chenal
7834e3849a
Handle sequence and history renaming when renaming table
2009-09-16 14:47:06 +02:00
Bertrand Chenal
36efc47a44
Allow to drop constraint, index and foreign key with custom table name
2009-09-10 14:19:10 +02:00
Bertrand Chenal
fd3493ec06
Added column renaming on db backends
2009-09-10 14:09:59 +02:00
Cédric Krier
0de3f616df
Process remove action if field is in any module
2009-08-04 16:59:47 +02:00
Bertrand Chenal
2d40d7350b
Change output_format (One2Many) to extension (Selection) on ir.action.report.
...
This will ease future addition of new report extension.
2009-04-16 23:22:42 +02:00
Cédric Krier
9db2aa4958
Set default value for id and __id column for issue886
2009-03-22 23:24:12 +01:00
Cédric Krier
1bd5fe4439
Add default value for id and __id for issue880
...
Create sequence for history table
2009-03-20 01:42:34 +01:00
Cédric Krier
6bf9598b71
Add primary key __id on history table
2009-03-18 18:57:47 +01:00
Cédric Krier
76f9cdf37f
Add missing history in super call
2009-03-18 18:08:41 +01:00
Cédric Krier
3cc8b4727d
Fix creation of table to use the right sequence name
2009-03-17 22:38:41 +01:00
Cédric Krier
3e51c5c110
Add functions for table_rename, sequence_exist and sequence_rename
2009-03-17 18:53:00 +01:00
Cédric Krier
044ecd61f8
Fix the history table creation
...
- create missing field added by others modules for issue857
- don't update history record with default value
2009-03-12 15:52:44 +01:00
Cédric Krier
7163b49021
Improve index_action to work with a list of column name
2009-03-06 00:36:22 +01:00
Cédric Krier
40f8c7553d
Modify Many2Many to use a model to store relations instead of a named table.
2009-03-05 14:50:44 +01:00
Cédric Krier
9aca50d788
Add id column if missing on table
2009-03-05 14:46:53 +01:00
Cédric Krier
f2a4986d29
Remove symbol_c as we will use only backend with Python Database API Specification v2.0
...
Rename symbol_f into sql_format
2009-03-02 14:49:09 +01:00
Cédric Krier
3706e76e99
Add _history_table on ModelSQL to historize change on records
...
Use _datetime in context to read record value at specific datetime
Add datetime_field on Many2One to use a specific _datetime when reading the
related record
2009-02-23 11:27:36 +01:00
Cédric Krier
0448226997
Move TableHandler into backend and create a TableHandlerInterface
2009-02-04 13:30:00 +01:00