]> wagnertech.de Git - kivitendo-erp.git/commitdiff
Beim Neuanlegen von Datenbanken darf die Datenbank schon existieren. Damit kann die...
authorMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 25 Jun 2008 13:25:25 +0000 (13:25 +0000)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 25 Jun 2008 13:25:25 +0000 (13:25 +0000)
SL/User.pm
locale/de/all
templates/webpages/admin/create_dataset_de.html
templates/webpages/admin/create_dataset_master.html

index 212175aaccc28505f5ffc1e1b1eced44c37b0b60..ece1fb8b584c098d884f05419f659cc75aa5de19 100644 (file)
@@ -344,7 +344,8 @@ sub dbcreate {
   my $query = $dbcreate{$form->{dbdriver}};
   $query .= " WITH " . join(" ", @{$dboptions{"Pg"}}) if (@{$dboptions{"Pg"}});
 
-  do_query($form, $dbh, $query);
+  # Ignore errors if the database exists.
+  $dbh->do($query);
 
   if ($form->{dbdriver} eq 'Oracle') {
     $query = qq|GRANT CONNECT, RESOURCE TO "$form->{db}"|;
index a721624e6783fcecc17cfee565b26c1c3c8f94aa..4e736968310b197c0956c0d1a03845f5add5504b 100644 (file)
@@ -707,6 +707,7 @@ aktualisieren wollen?',
   'Image'                       => 'Grafik',
   'Import CSV'                  => 'CSV-Import',
   'In Lx-Office 2.4.0 the administrator has to enter a list of units in the administrative section.' => 'In Lx-Office 2.4.0 muss der Administrator in den Systemeinstellungen eine Liste von verwendbaren Einheiten angeben.',
+  'In the latter case the tables needed by Lx-Office will be created in that database.' => 'In letzterem Fall werden die von Lx-Office benötigten Tabellen in dieser existierenden Datenbank angelegt.',
   'In-line'                     => 'im Text',
   'Inactive'                    => 'Inaktiv',
   'Include Exchangerate Difference' => 'Wechselkursunterschied einbeziehen',
@@ -1613,6 +1614,7 @@ aktualisieren wollen?',
   'You can create a missing dataset by going back and chosing &quot;Create Dataset&quot;.' => 'Sie k&ouml;nnen eine fehlende Datenbank erstellen, indem Sie jetzt zu&uuml;ck gehen und den Punkt &quot;Datenbank anlegen&quot; w&auml;hlen.',
   'You can create warehouses and bins via the menu "System -> Warehouses".' => 'Sie k&ouml;nnen Lager und Lagerpl&auml;tze &uuml;ber das Men&uuml; "System -> Lager" anlegen.',
   'You can declare different translations for singular and plural for each unit (e.g. &quot;day&quot; and &quot;days).' => 'Bei den &Uuml;bersetzungen k&ouml;nnen Sie unterschiedliche Varianten f&uuml;r singular und plural angeben (z.B. &quot;day&quot; und &quot;days&quot;).',
+  'You can either create a new database or chose an existing database.' => 'Sie können entweder eine neue Datenbank erstellen oder eine existierende auswählen.',
   'You can only delete datasets that are not in use.' => 'Sie k&ouml;nnen nur Datenbanken l&ouml;schen, die momentan nicht in Benutzung sind.',
   'You can use the following strings in the long description and all translations. They will be replaced by their actual values by Lx-Office before they\'re output.' => 'Sie k&ouml;nnen im Langtext und allen Übersetzungen die folgenden Variablen benutzen, die vor der Ausgabe von Lx-Office automatisch ersetzt werden:',
   'You cannot continue before all required modules are installed.' => 'Sie k&ouml;nnen nicht fortfahren, bevor alle ben&ouml;tigten Pakete installiert sind.',
index 8bb5550b4a1b8c3526b34c8e1f49ba3b3fbf8d83..a146dc7b127255aec7051d98fa2ce77734db17a6 100644 (file)
@@ -4,6 +4,11 @@
 
   <form method="post" action="admin.pl">
 
+   <p>
+    Sie können entweder eine neue Datenbank erstellen oder eine existierende auswählen.
+    In letzterem Fall werden die von Lx-Office benötigten Tabellen in dieser existierenden Datenbank angelegt.
+   </p>
+
    <table>
     <tr>
      <th valign="top" align="right" nowrap>existierende Datenbanken</th>
index a9945398f1f56d3f85154f0b5a9dda9c4b10046c..b207e5840e12169e5cc84a166ec595dfb65b2148 100644 (file)
@@ -4,6 +4,13 @@
 
   <form method="post" action="admin.pl">
 
+   <p>
+    <translate>You can either create a new database or chose an
+     existing database.</translate>
+    <translate>In the latter case the tables needed by Lx-Office will
+     be created in that database.</translate>
+   </p>
+
    <table>
     <tr>
      <th valign="top" align="right" nowrap><translate>Existing Datasets</translate></th>