mgrojo
282e6739d9
Prevent data loss when editing table with foreign keys enabled
...
Our procedure for editing tables may involve a drop of the old table
definition. This will trigger the "ON DELETE CASCADE" clauses of the
child tables, leading to unexpected and silent data loss.
Following the procedure described in:
https://www.sqlite.org/lang_altertable.html
we can guarantee that no data is deleted, but at the cost of opening a
new transaction specific for the table modification. The possible pending
changes must be saved before. This is only done when the foreign_keys
pragma is enabled.
See issue #1481
2018-08-09 13:28:49 +02:00
..
2017-07-21 16:57:30 +01:00
2018-07-13 16:54:43 +02:00
2018-06-08 14:47:29 +02:00
2018-07-14 15:55:49 +02:00
2014-05-11 12:31:51 +02:00
2018-08-06 21:31:05 +02:00
2017-10-31 18:21:58 +01:00
2017-10-30 21:20:02 +01:00
2018-01-05 15:56:37 +01:00
2018-07-13 10:20:58 +01:00
2018-01-05 16:27:23 +01:00
2017-10-31 18:21:58 +01:00
2018-07-10 20:46:17 +02:00
2018-07-10 20:46:17 +02:00
2018-06-08 23:51:14 +02:00
2018-07-10 20:46:17 +02:00
2018-07-10 20:46:17 +02:00
2018-08-06 19:46:13 +02:00
2017-11-02 23:02:55 +01:00
2015-07-06 18:28:30 +02:00
2017-11-05 12:40:32 +01:00
2017-10-24 12:30:12 +01:00
2018-06-29 22:37:25 +02:00
2018-06-29 22:37:25 +02:00
2018-06-08 22:46:47 +02:00
2018-01-15 23:10:23 +01:00
2018-02-25 19:13:28 +01:00
2017-12-23 22:19:17 +01:00
2018-07-10 20:46:17 +02:00
2018-07-10 20:46:17 +02:00
2018-07-10 20:57:55 +02:00
2018-01-27 19:01:08 +01:00
2018-02-02 21:27:58 +01:00
2018-07-15 23:39:40 +02:00
2017-10-30 21:20:02 +01:00
2017-05-14 21:37:11 +02:00
2018-06-08 22:46:47 +02:00
2017-10-30 21:20:02 +01:00
2017-10-29 13:14:09 +01:00
2018-06-08 22:46:47 +02:00
2017-10-30 21:20:02 +01:00
2017-08-25 07:05:58 +02:00
2018-05-16 18:01:19 +02:00
2017-10-30 21:20:02 +01:00
2017-08-25 07:05:58 +02:00
2018-03-28 22:26:07 +02:00
2018-02-25 19:13:28 +01:00
2018-08-08 14:39:02 +02:00
2018-07-08 14:29:52 +02:00
2018-01-13 16:43:24 +01:00
2018-01-13 16:43:24 +01:00
2018-01-13 16:43:24 +01:00
2018-01-13 16:43:24 +01:00
2018-08-03 18:49:25 +02:00
2018-07-08 14:29:52 +02:00
2018-07-08 14:29:52 +02:00
2017-10-30 13:10:08 +01:00
2018-07-13 00:25:11 +02:00
2017-12-16 00:09:47 +01:00
2017-12-16 00:09:47 +01:00
2018-01-05 15:56:37 +01:00
2017-10-31 12:12:18 +01:00
2017-10-31 12:12:18 +01:00
2015-01-27 23:03:30 +01:00
2014-12-05 09:20:29 +00:00
2014-05-11 12:31:51 +02:00
2018-06-08 22:46:47 +02:00
2018-05-25 21:06:16 +02:00
2018-05-25 22:11:43 +02:00
2014-05-14 02:45:45 +01:00
2014-05-15 17:52:00 +02:00
2018-08-09 13:28:49 +02:00
2018-08-05 15:45:50 +02:00
2018-08-09 12:45:41 +02:00
2014-12-05 09:20:29 +00:00
2018-06-08 22:46:47 +02:00
2018-01-30 20:33:15 +01:00
2018-01-20 18:28:03 +01:00
2018-06-18 17:49:12 +02:00
2018-02-25 19:13:28 +01:00
2018-08-06 19:24:46 +02:00
2018-07-10 20:57:55 +02:00
2018-07-10 20:57:55 +02:00
2018-07-10 20:57:55 +02:00
2018-01-30 20:33:15 +01:00
2018-02-02 21:27:58 +01:00
2017-10-30 13:10:08 +01:00
2017-10-31 12:11:03 +01:00
2017-10-30 13:10:08 +01:00
2017-10-06 11:39:00 +02:00
2017-09-30 14:07:18 +02:00
2018-06-08 22:46:47 +02:00
2018-06-08 22:46:47 +02:00
2018-06-08 22:46:47 +02:00
2018-06-23 17:57:18 +02:00
2018-07-10 20:46:17 +02:00
2017-12-15 17:58:28 +01:00
2017-11-30 22:44:16 +01:00
2018-01-05 15:56:37 +01:00
2016-08-29 15:43:20 +01:00
2018-08-06 19:46:13 +02:00
2018-07-10 20:46:17 +02:00
2018-08-08 14:39:02 +02:00
2018-06-08 22:46:47 +02:00
2018-07-13 16:54:43 +02:00
2018-06-18 17:49:12 +02:00
2018-07-13 00:46:14 +01:00
2017-12-16 00:09:47 +01:00
2018-01-18 22:55:59 +01:00
2017-10-30 21:20:02 +01:00
2018-07-10 23:12:28 +02:00
2017-10-30 13:10:08 +01:00
2017-10-30 21:20:02 +01:00
2017-09-03 21:25:29 +02:00
2018-05-20 13:54:24 +01:00
2018-05-20 13:54:24 +01:00