-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #599 from OpenOlitor/fix/operations#465_EnlargeKun…
…deBez Kunde.bezeichung must be larger than vorname + ' ' + nachname
- Loading branch information
Showing
2 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
...main/scala/ch/openolitor/core/db/evolution/scripts/v2/operations465_EnlargeKundeBez.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} |