From ae0c6ed119c3f652a0e298fccf6a8ed157f6f245 Mon Sep 17 00:00:00 2001 From: Dimitri Fontaine Date: Mon, 17 Jul 2017 11:04:12 +0200 Subject: [PATCH] Add support for preserving index names in SQLite. See #187. --- src/parsers/command-sqlite.lisp | 3 ++- test/sqlite-chinook.load | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/parsers/command-sqlite.lisp b/src/parsers/command-sqlite.lisp index 14fb500..6a2d9d1 100644 --- a/src/parsers/command-sqlite.lisp +++ b/src/parsers/command-sqlite.lisp @@ -28,7 +28,8 @@ load database option-include-drop option-create-tables option-create-indexes - option-reset-sequences + option-index-names + option-reset-sequences option-foreign-keys option-encoding)) diff --git a/test/sqlite-chinook.load b/test/sqlite-chinook.load index 124166f..b7bf43e 100644 --- a/test/sqlite-chinook.load +++ b/test/sqlite-chinook.load @@ -7,7 +7,8 @@ load database with workers = 4, concurrency = 2, on error stop, - include drop, create tables, create indexes, reset sequences, foreign keys + include drop, create tables, create indexes, reset sequences, foreign keys, + preserve index names -- alter table names matching ~/./ set schema 'chinook' alter table names matching 'Employee' rename to 'staff'