Skip to content

Commit

Permalink
Merge pull request #599 from OpenOlitor/fix/operations#465_EnlargeKun…
Browse files Browse the repository at this point in the history
…deBez

Kunde.bezeichung must be larger than vorname + ' ' + nachname
  • Loading branch information
AlwinEgger authored Oct 19, 2021
2 parents f87eedc + 4818a67 commit d80fe59
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -247,5 +247,6 @@ object V2Scripts {
OO_sunu_adding_bic_to_account.scripts ++
OO_github_39_adding_mandantId_DateOfSignature.scripts ++
OO_gitlab_373_ZahlungsEingang_teilnehmer_nummer.scripts ++
OO_distribution_date_time_should_not_consider_time.scripts
OO_distribution_date_time_should_not_consider_time.scripts ++
Operations465_EnlargeKundeBez.scripts
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/* *\
* ____ ____ ___ __ *
* / __ \____ ___ ____ / __ \/ (_) /_____ _____ *
* / / / / __ \/ _ \/ __ \/ / / / / / __/ __ \/ ___/ OpenOlitor *
* / /_/ / /_/ / __/ / / / /_/ / / / /_/ /_/ / / contributed by tegonal *
* \____/ .___/\___/_/ /_/\____/_/_/\__/\____/_/ http://openolitor.ch *
* /_/ *
* *
* This program is free software: you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, *
* or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, but *
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for *
* more details. *
* *
* You should have received a copy of the GNU General Public License along *
* with this program. If not, see http://www.gnu.org/licenses/ *
* *
\* */
package ch.openolitor.core.db.evolution.scripts.v2

import ch.openolitor.core.db.evolution.Script
import com.typesafe.scalalogging.LazyLogging
import ch.openolitor.buchhaltung.BuchhaltungDBMappings
import ch.openolitor.core.SystemConfig
import scalikejdbc._
import scala.util.Try
import scala.util.Success

object Operations465_EnlargeKundeBez {
val EnlargeKundeBez = new Script with LazyLogging with BuchhaltungDBMappings {
def execute(sysConfig: SystemConfig)(implicit session: DBSession): Try[Boolean] = {
sql"""ALTER TABLE ${kundeMapping.table} MODIFY bezeichnung VARCHAR(200)""".execute.apply()
Success(true)
}
}

val scripts = Seq(EnlargeKundeBez)
}

0 comments on commit d80fe59

Please sign in to comment.