Cannot access customStatement() API inside of migrationSteps to write custom SQL Queries during migration
#3733
Closed
architxkumar
started this conversation in
General
Replies: 1 comment 1 reply
-
Since A good workaround an be to make the migrations an extension on extension Migrations on GeneratedDatabase {
get _upgrade => migrationSteps(
from1To2: (m, schema) async {
await m.createTable(schema.listItems);
await customStatement('');
}
);
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to write custom statements using the new

customStatementAPI, but getting an error from Dart analyser.Here is the code snippet (with the error) that I am working upon.
Beta Was this translation helpful? Give feedback.
All reactions