From 195230a90e270867c0617f57a1bc30bd208e50e5 Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Date: Tue, 19 Sep 2017 13:32:31 -0300
Subject: [PATCH] Bug 19344: Reorder lang and login_attempts in the
 [deleted]borrowers tables

Due to a bad rebase, the borrowers and deletedborrowers table structure
may different from a new install and upgraded install
For new installs, the order was: lang, login_attempts
For upgraded installs, it was lang, last_seen, login_attempts

After this patch, the order must be:
- last_seen
- lang
- login_attempts
---
 installer/data/mysql/atomicupdate/bug_19344.sql | 3 +++
 1 file changed, 3 insertions(+)
 create mode 100644 installer/data/mysql/atomicupdate/bug_19344.sql

diff --git a/installer/data/mysql/atomicupdate/bug_19344.sql b/installer/data/mysql/atomicupdate/bug_19344.sql
new file mode 100644
index 0000000000..441ac56beb
--- /dev/null
+++ b/installer/data/mysql/atomicupdate/bug_19344.sql
@@ -0,0 +1,3 @@
+ALTER TABLE borrowers MODIFY COLUMN login_attempts int(4) AFTER lang;
+ALTER TABLE deletedborrowers MODIFY COLUMN login_attempts int(4) AFTER lang;
+
-- 
2.11.0