]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/res/raw/sql_7.sql
let SQL revision files control the transaction
[mobile-ledger.git] / app / src / main / res / raw / sql_7.sql
index 780e4d4d91ea5907ba5a7440f4b52ebe8a1ccaaa..299a9e7f92c6af341d0995624baa64741da2fd2e 100644 (file)
@@ -13,5 +13,9 @@
 -- 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;
+
 create table transactions(id varchar primary key, date varchar, description varchar);
 create table transaction_accounts(transaction_id integer not null, account_name varchar not null, amount float, currency varchar, foreign key (transaction_id) references transactions(id), foreign key(account_name) references accounts(name));
+
+COMMIT TRANSACTION;
\ No newline at end of file