diff options
-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 |