
Hello, I am working with dart Angel 3 object relational model and Mysql 8.0.32. I wander if someone had successed to pass foreign keys in tables. I can run migrations files and create few tables. Then i try to append it with foreign keys in other migrations' files but nothing change in the table. The related tables are well created before. The logger return that there is nothing to add in migrations whereas it had to modify it with fks. I didn't see a specific method to had fks in the framework. Does it exist somewhere?
I let de function up of migration's files : @override Future<void> up(Schema schema) async {
schema.alter('Users', (table) {
var addressRef = table.integer('address_id').references('addresses', 'id');
addressRef.onDeleteCascade();
}
Recommended threads
- Google & Apple OAuth2 not working in App...
Two days ago, the OAuth2-based login/signup was working as expected. Today, when I try to log in with an existing user using Apple OAuth2, it shows the message ...
- Streaming a video in flutter
I’m trying to stream a video from storage using the file url but i am not sure what headers exactly to pass in the GET /view request. In the documentation i see...
- Can't reach Frankfurt server
I have been developing an IoT device that senses an event, takes a picture and pushes the jpg to an appwrite project. I'm using a Sixfab Pico LTE board that cou...
