diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-02-19 14:27:26 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-02-19 14:27:26 +0100 |
commit | 9e46fb535ddce461a11f57d4ce75a43c3ad651e8 (patch) | |
tree | ec91ad9cb3b4d4fa7699f5755b9ece5a35af2d2d | |
parent | 2187b2b7d845f6c5b50e380447c034c830454e75 (diff) |
Fix typo in DB version strings (there should be no .sql suffix)
-rw-r--r-- | SQL/mssql.initial.sql | 2 | ||||
-rw-r--r-- | SQL/mysql.initial.sql | 2 | ||||
-rw-r--r-- | SQL/postgres.initial.sql | 2 | ||||
-rw-r--r-- | SQL/sqlite.initial.sql | 2 | ||||
-rwxr-xr-x | bin/updatedb.sh | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/SQL/mssql.initial.sql b/SQL/mssql.initial.sql index 694fe7efb..9139509a5 100644 --- a/SQL/mssql.initial.sql +++ b/SQL/mssql.initial.sql @@ -371,6 +371,6 @@ CREATE TRIGGER [contact_delete_member] ON [dbo].[contacts] WHERE [contact_id] IN (SELECT [contact_id] FROM deleted)
GO
-INSERT INTO [dbo].[system] ([name], [value]) VALUES ('roundcube-version', '2013011700.sql')
+INSERT INTO [dbo].[system] ([name], [value]) VALUES ('roundcube-version', '2013011700')
GO
\ No newline at end of file diff --git a/SQL/mysql.initial.sql b/SQL/mysql.initial.sql index 3d6bae48a..cb750c5ea 100644 --- a/SQL/mysql.initial.sql +++ b/SQL/mysql.initial.sql @@ -196,4 +196,4 @@ CREATE TABLE `system` ( /*!40014 SET FOREIGN_KEY_CHECKS=1 */; -INSERT INTO system (name, value) VALUES ('roundcube-version', '2013011700.sql'); +INSERT INTO system (name, value) VALUES ('roundcube-version', '2013011700'); diff --git a/SQL/postgres.initial.sql b/SQL/postgres.initial.sql index d6acb5d69..32d8edee8 100644 --- a/SQL/postgres.initial.sql +++ b/SQL/postgres.initial.sql @@ -274,4 +274,4 @@ CREATE TABLE "system" ( value text ); -INSERT INTO system (name, value) VALUES ('roundcube-version', '2013011700.sql'); +INSERT INTO system (name, value) VALUES ('roundcube-version', '2013011700'); diff --git a/SQL/sqlite.initial.sql b/SQL/sqlite.initial.sql index a9c7f5047..83874ce7c 100644 --- a/SQL/sqlite.initial.sql +++ b/SQL/sqlite.initial.sql @@ -209,4 +209,4 @@ CREATE TABLE system ( value text NOT NULL ); -INSERT INTO system (name, value) VALUES ('roundcube-version', '2013011700.sql'); +INSERT INTO system (name, value) VALUES ('roundcube-version', '2013011700'); diff --git a/bin/updatedb.sh b/bin/updatedb.sh index 4b922ea83..c856e0d63 100755 --- a/bin/updatedb.sh +++ b/bin/updatedb.sh @@ -63,7 +63,7 @@ if (in_array('system', (array)$DB->list_tables())) { $opts['package'] . '-version'); $row = $DB->fetch_array(); - $version = $row[0]; + $version = preg_replace('/[^0-9]/', '', $row[0]); } // DB version not found, but release version is specified |