1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2025-11-21 05:09:16 +01:00
Commit graph

16 commits

Author SHA1 Message Date
Yann
60e23b4946 [not tested] Added 3 more fieldtypes : file, datetime, text 2015-09-17 15:49:11 +02:00
Yann
4096a19d77 Updated the MH
Now it has a EmField 2 django method
2015-09-17 15:10:57 +02:00
Yann
0dd07ea281 [Broken] Make the MH using the to_django method of EmField and me.json updates
Added a fieldtype varchar to me.json
There is a bug with django fields default values
2015-09-16 17:27:48 +02:00
Yann
12588a37ed Added a dryrun option to the migration handler and solved a bug in the django patch file 2015-09-16 14:44:43 +02:00
Yann
e5e23defec Now we use the register_model_state method to migrate the db
Added a patch to solve a bug in django/core/management/commands/makemigrations.py w/django/core/management/commands/makemigrations.py
See https://code.djangoproject.com/ticket/24735
2015-09-16 11:55:01 +02:00
Yann
1137205c99 Solved some bugs about conditionnal models instanciation in LodelTestInstance.models
Added Lodel/settings/migrations.py that I forget
Disabled the --merge option that was given to the makemigrations command by the MH
2015-09-16 11:03:45 +02:00
Yann
8bea52d740 Code cleaning and adding features to generate models in application only when not testing with the MH 2015-09-16 10:37:23 +02:00
Yann
aa6e01bff0 Dirty comit of a djago MH that "works"
Code cleaning, commenting etc needed...
2015-09-16 09:53:03 +02:00
Yann
f8879901f1 Using uniq_name of component for naming Django models 2015-09-11 14:52:56 +02:00
Yann
74f1de0f4b First version of the DjangoMigrationHandler. Created a LodelTestInstance for tests purpose
Some problems are still to solve (see the todo comments in EditorialModel/migrationhandler/django.py )
2015-09-11 14:52:56 +02:00
Yann
e530211a1e Comments update 2015-09-10 11:46:51 +02:00
Roland Haroutiounian
ab51b27b78 [migration handler] pylint+pep8 on migrationhandler/dummy.py 2015-07-29 09:55:42 +02:00
Yann
6aa32322a0 SHA512 hash for Model 2015-07-24 17:41:08 +02:00
Yann
084b8af6c1 MigrationHandler enhancement (now records Model's hash for each changes). Better beaviour of Model.create_component if MigrationHandler raises 2015-07-24 17:23:12 +02:00
Yann
fe9184f608 Reimplementig EmComponent::__setattr__ to call migration handler
Addding a method to indicate the end of a component initialisation phase (used in Model.load and Model.create_component)
Adding a method that dump component attributes (used in Model.create_component and Model.delete_component to call the migration_handler)
2015-07-24 16:36:21 +02:00
Yann
d5fde8287b Written a first DummyMigrationHandler and modified Model __init__ method to have a migration_handler arguments
Now Model as an attribute named migration_handler
DummyMigrationHandler has only one method : register_change
2015-07-23 16:50:06 +02:00