Open makorne opened 3 years ago
Hello @makorne!
This error is encountered when the Vschema for the tables are missing. Vschema is required for all the tables that are sharded, but aren't a necessity for an unsharded keyspace. Here are the docs that talk about Vschema https://vitess.io/docs/reference/features/vschema/
You are creating the default tables in the test
keyspace which has 2 shards, so you would need to add the vschema for it. There are DDL commands that Vitess has that can be used for this. Here take a look at an example from the rails testing suite to see how we handle framework internal tables.
@makorne is the issue still there or did this fix work?
For a basic numeric sequence - yes. But I cannot find any example with uuid as a primary key for sharding. Something like this is in the example:
add_sequence_and_vindex "physicians"
add_sequence_and_vindex "patients"
add_binary_md5_vindex "appointments" "patient_id"
but for uuid.
docker run --name=vttestserver -p 33577:33577 -e PORT=33574 -e KEYSPACES=test,unsharded -e NUM_SHARDS=2,1 -e MYSQL_MAX_CONNECTIONS=70000 -e MYSQL_BIND_HOST=0.0.0.0 --health-cmd="mysqladmin ping -h127.0.0.1 -P33577" --health-interval=5s --health-timeout=2s --health-retries=5 vitess/vttestserver:mysql57
Lets try the example from #6644
error: while executing migrations: error returned from database: 1105 (HY000): table _sqlx_migrations not found