Admin
ya...that lines up with 1.0.1...
Votes
0
Replies
24
Participants
Unknown
Messages
25
Admin
ya...that lines up with 1.0.1...
Rank 1: Thread
did i miss a migration step in there somewhere?
Admin
my keys attributes is:
Admin
[ { "$id": "projectId", "type": "string", "size": 255, "required": false, "signed": true, "array": false, "filters": [] }, { "$id": "name", "type": "string", "size": 255, "required": true, "signed": true, "array": false, "filters": [] }, { "$id": "scopes", "type": "string", "size": 255, "required": true, "signed": true, "array": true, "filters": [] }, { "$id": "secret", "type": "string", "size": 512, "required": true, "signed": true, "array": false, "filters": [ "encrypt" ] }, { "$id": "projectInternalId", "key": "projectInternalId", "type": "string", "size": 255, "required": false, "default": null, "signed": true, "array": false, "format": "", "formatOptions": [], "filters": [] }, { "$id": "expire", "key": "expire", "type": "datetime", "size": 0, "required": false, "default": null, "signed": false, "array": false, "format": "", "formatOptions": [], "filters": [ "datetime" ] }, { "$id": "accessedAt", "key": "accessedAt", "type": "datetime", "size": 0, "required": false, "default": null, "signed": false, "array": false, "format": "", "formatOptions": [], "filters": [ "datetime" ] }, { "$id": "sdks", "key": "sdks", "type": "string", "size": 255, "required": true, "default": null, "signed": true, "array": true, "format": "", "formatOptions": [], "filters": [] }]Admin
you can see it has sdks
Admin
if you were on 1.0.1, you shouldn't have missed any migration step....it makes no sense why your attributes metadata is missing some attributes...
Rank 1: Thread
i see, mine is missing SDK
Rank 1: Thread
ok, it sounds like i should probly spin up a new version
Rank 1: Thread
and my issue is due to missing attributes in the metadata
Admin
ideally, yes...but we can try to fix...
Admin
how have you been doing the migration? what exact command?
Rank 1: Thread
i feel bad for taking up so much of your time as it is, i really appreciate you being willing to help me out with this issue.
Rank 1: Thread
docker-compose -f /docker/docker-compose2.yml exec appwrite migrate
Admin
kk you can try backing up your data (so you can rollback if something goes wrong) and then run...
docker-compose -f /docker/docker-compose2.yml exec appwrite migrate version=1.0.3
Rank 1: Thread
absolutely, fortunately this is on a VM, so i will take a snapshot and run that shortly
Rank 1: Thread
Ok, migrate has completed
Rank 1: Thread
i checked the attributes by running:
docker exec -it appwrite-mariadb sh -c 'mysql -uroot -p$MYSQL_ROOT_PASSWORD $MYSQL_DATABASE -e "select * from _console__metadata where name = \"keys\";"'
and it still does not show sdk
Admin
what was the output?
Rank 1: Thread
here you are
Admin
Migrating Collection "keys"
[PDO] MySQL connection restarted
'accessedAt' from keys: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'accessedAt'
[PDO] MySQL connection restarted
'sdks' from keys: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'sdks'
😑
Rank 1: Thread
lol
Admin
i guess you could manually try to update your keys attributes to be this
Admin
and then you may need to restart the appwrite container
Rank 1: Thread
ok, i can look into that, im hopeless when it comes to DB which is why im using appwrite
Rank 1: Thread
but i will give that a try and let you know the results