1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2026-11-05 02:51:33 +01:00
Commit graph

14 commits

Author SHA1 Message Date
Yann
a3b9daf319 sqlwrapper deletion and sqlsetup enhancement
Moved the database initialisation functionnality to sqlsetup and fixed all the code to handle the sqlwrapper deletion
2015-07-01 16:22:10 +02:00
Yann
027fcb974c Implemented EmType hierarchy, added utility function to classtype, changed pk for em_type_hierarchy table
EmType hierarchy is handled by 3 functions :
	- EmType.superiors()
	- EmType.subordinates()
	- EmType.add_superior(em_type, nature)
	- EmType.del_superior(em_type, nature)
Hierarchy implementation is not tested (because their is no tests...)

Added a function to get authorized relation nature from an EmClassType
Added the nature of a relation to the primary key of em_type_hierarchy table (triple pk : sup_id, sub_id, nature)
2015-06-24 12:09:01 +02:00
Yann
f26e87f621 Adding default date for date_create and date_update columns
The dates are set in EmComponent::create() for date_create and in EmComponent::save() for date_update
The values are sets to datetime.datetime.utcnow() so we now that EVERY date in the db are in UTC, no matter django, database or even server configurations.
We will have to take care to convert dates from database to django timezone in dates fieldtypes.
2015-06-11 12:17:29 +02:00
Yann
c100dd43f3 Adding default date for date_create and date_update columns
The dates are set in EmComponent::create() for date_create and in EmComponent::save() for date_update
The values are sets to datetime.datetime.utcnow() so we now that EVERY date in the db are in UTC, no matter django, database or even server configurations.
We will have to take care to convert dates from database to django timezone in dates fieldtypes.
2015-06-11 12:06:53 +02:00
Yann
7fb90e3045 Set some FK of EmField to NULL by default 2015-06-05 17:00:33 +02:00
Yann
c4e1afd192 More SQL isolation and some little bugfixes 2015-06-05 16:19:48 +02:00
ArnAud
0f66161eaa fieldtype becomes a named variable instead of an integer 2015-06-05 14:42:01 +02:00
ArnAud
fa9b842a3d all uids ar integers 2015-06-05 14:38:38 +02:00
Yann
c901e7a643 Bugfixes in sqlsetup
Put every uid columns and associated FK in INTEGER instead of VARCHAR(50)
2015-06-05 14:23:22 +02:00
Yann
fff0225428 Merge branch 'sqlwrapper' 2015-06-05 11:07:02 +02:00
ArnAud
58a4d7c681 Schéma: uid as integer, no column named 'class' 2015-06-03 15:42:12 +02:00
Yann
ddfbb2b056 Modified SqlWrapper to handle SqlSetup script
Now SQLSetup in able (via initDb) to initialize the database.
WARNING : initDb start by droping all tables in database before creating the new ones
2015-06-03 15:01:37 +02:00
ArnAud
4e2b85328c ME: installation of the basic tables 2015-05-27 16:48:51 +02:00
Roland Haroutiounian
d8d0f9f303 Ajout du module Database 2015-05-22 12:22:16 +02:00