]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/res/raw/sql_20.sql
let SQL revision files control the transaction
[mobile-ledger.git] / app / src / main / res / raw / sql_20.sql
index 8e2c1ecab389a9a8a4d812d2d147331ed584021a..7510b7dcba2741b41c2e43c793e8595ea63ddb97 100644 (file)
 -- You should have received a copy of the GNU General Public License
 -- along with MoLe. If not, see <https://www.gnu.org/licenses/>.
 
+BEGIN TRANSACTION;
+
 delete from accounts where not exists (select 1 from profiles where uuid = profile);
 delete from account_values where not exists (select 1 from profiles where uuid = profile);
 delete from transactions where not exists (select 1 from profiles where uuid = profile);
 delete from transaction_accounts where not exists (select 1 from profiles where uuid = profile);
+
+COMMIT TRANSACTION;
\ No newline at end of file