statement property

  1. @override
String get statement
override

When the last foreign key column is created on a joins table, an index is created to ensure that duplicate entries are not inserted

Implementation

@override
String get statement =>
    'ALTER TABLE `$localTableName` ADD COLUMN `$foreignKeyColumn` INTEGER REFERENCES `$foreignTableName`(`${InsertTable.PRIMARY_KEY_COLUMN}`)$_onDeleteStatement';