Yann Weber
7e53eff0b1
Change the MySQL connector and updates the requirements.txt
vor 9 Jahren
Yann Weber
95c1870f17
Add rel2type attribute handling
vor 9 Jahren
Yann Weber
4f8f13e41f
Make the MH more fault tolerant and add the foreign keys support
vor 9 Jahren
Yann Weber
1a50842a7e
First commit of an MySQL migration handler
vor 9 Jahren
Yann Weber
eba6e9d6cf
Deleted most of Django code/files
vor 9 Jahren
ArnAud
5babe2f6d7
migration handler SQL: use basic_type and fieldtypes method to create column definitions
vor 9 Jahren
ArnAud
b4740208ca
Migration handler SQL: create common fields in object table
vor 9 Jahren
ArnAud
0a0ebd69ea
migration handler SQL: use PrimaryKey name from classtypes.py configuration
vor 9 Jahren
ArnAud
ce219de48a
Editorial Model: first shot at the SQL migration handler (bye-bye django)
vor 9 Jahren
Yann Weber
c0bea01d0e
Updated the django listfieldtype command (useless since we planned to remove django -_-) + disabling the LodelTestInstance calls to djangoMh
vor 9 Jahren
Yann Weber
16fa61fb8a
Enabling basic admin interface for dynamic django EmType models + bugfix on models save method
vor 9 Jahren
Roland Haroutiounian
bbe7a88842
PEP8/PyLint on migrationhandler/dummy.py
vor 9 Jahren
Roland Haroutiounian
d378a38bdf
PEP8 / PyLint on migrationhandler/django.py
vor 9 Jahren
Yann Weber
06bd3b141d
Model construct enhancement with backend and MH inheritance
Every backend and MH are now subclasses of dummy ones. This allow to check the type with issubclass.
vor 9 Jahren
Roland Haroutiounian
1f90b6f911
[#49 ] Changed the use of superiors in the migration handler
I put a for loop over the list to generate a foreign key for each item in the list.
vor 9 Jahren
Yann Weber
d199d571bd
Cleaning & commenting + adding warning
vor 9 Jahren
Yann Weber
d35fa8c56e
Cleaning and commenting
vor 9 Jahren
Yann Weber
2b6615775c
Added a django admin command to list fieldtypes
vor 9 Jahren
Yann Weber
60e23b4946
[not tested] Added 3 more fieldtypes : file, datetime, text
vor 9 Jahren
Yann Weber
4096a19d77
Updated the MH
Now it has a EmField 2 django method
vor 9 Jahren
Yann Weber
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
vor 9 Jahren
Yann Weber
12588a37ed
Added a dryrun option to the migration handler and solved a bug in the django patch file
vor 9 Jahren
Yann Weber
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
vor 9 Jahren
Yann Weber
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
vor 9 Jahren
Yann Weber
8bea52d740
Code cleaning and adding features to generate models in application only when not testing with the MH
vor 9 Jahren
Yann Weber
aa6e01bff0
Dirty comit of a djago MH that "works"
Code cleaning, commenting etc needed...
vor 9 Jahren
Yann Weber
f8879901f1
Using uniq_name of component for naming Django models
vor 9 Jahren
Yann Weber
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 )
vor 9 Jahren
Yann Weber
e530211a1e
Comments update
vor 9 Jahren
Roland Haroutiounian
ab51b27b78
[migration handler] pylint+pep8 on migrationhandler/dummy.py
vor 9 Jahren
Yann Weber
6aa32322a0
SHA512 hash for Model
vor 9 Jahren
Yann Weber
084b8af6c1
MigrationHandler enhancement (now records Model's hash for each changes). Better beaviour of Model.create_component if MigrationHandler raises
vor 9 Jahren
Yann Weber
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)
vor 9 Jahren
Yann Weber
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
vor 9 Jahren