Want to create multiple tables in a database in sqflite? You can just combine multiple db.execute calls for example:
1 2 3 4 5 6 7 8 9 10 11 12 13 | await db.execute(''' create table $reminderTable ( $columnReminderId integer primary key autoincrement, $columnReminderCarId integer not null, $columnReminderName text not null, $columnReminderNotifyMileage integer not null, $columnReminderEndMileage integer not null )'''); await db.execute(''' create table $carTable ( $columnCarId integer primary key autoincrement, $columnCarTitle text not null )'''); |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.