Closed sergej-wv closed 1 month ago
Hi @sergej-wv , Which database are you using?
With Regards, Team Horilla
Hello, the database is a sqlite one.
Hi @sergej-wv , Can you please share the contents of the last migrations file from the pms app?
Hello, how do I find and identify this file ?
Hi @sergej-wv , You'll can find it inside pms/migrations/. The file name will be something similar to - _0008_keyresult_meetings_alter_feedback_options_andmore .
Hello, this are the files inside the stated folder of the installation after pulling from git:
ls pms/migrations/
0001_initial.py
0002_alter_answer_feedback_id_and_more.py
0003_historicalcomment_history_description_and_more.py
0004_employeekeyresult_progress_percentage_and_more.py
0005_remove_period_company_id_and_more.py
0006_anonymousfeedback.py
0007_alter_anonymousfeedback_feedback_description_and_more.py
0008_keyresult_meetings_alter_feedback_options_and_more.py
Please share the contents of the last file (0008_keyresult_meetings_alter_feedback_options_and_more.py)
The file was attached to this comment. 0008_keyresult_meetings_alter_feedback_options_and_more.py.txt
Hello @horilla-opensource, I would like to ask for a hint which time format has to be used for the row.
Hi @sergej-wv ,
Apologize for the late reply.
Please use the Day, Month, Year format and try.
Hello,
thank you for the answer but it seems to not work as expected. The current application was upgraded to the latest git state like described in my initial post. When the command "makemigrations" prompted for a value, the value "01,01,2000" was provided. I am not a python developer therefor I had to guess based on you answer. Could you please provide an example ? The python function "datetime.now" (typed in from my memory therefor highly likely incorrect) returns the value using this format: 2000-01-01. But the input was accepted. When running the command "migrate" this error is returned:
I would also expect that the value of an id field is an integer, not a date time.
Best regards.
Hi @sergej-wv ,
Can we have a meeting to discuss this further? Since it'll be difficult to communicate from here, as it requires some live testing to pinpoint the solution.
If possible, please contact us at support@horilla.com (through mail or in skype).
With Regards, Team Horilla
This fixes the error. Thank you for the support.
Bug Report
Description
Hello,
applying migrations fails because a valid value cannot be provided.
Steps to Reproduce
pip install -r requirements.txt
Expected Behavior
Migrations are applied.
Actual Behavior
Applying database migrations fails.
Environment
Additional Information
[Any other relevant information, logs, error messages, or context that might help in understanding and fixing the issue.]
Possible Solution
The makemigration command asks for a value without specifying which format is expected. The commands "datatime.datetime", "timezone.now", "datetime.datetime.now()" and "print(datetime.datetime.now())". It was possible to set a valid value once but we cannot remember which one.
Priority
medium