- Migration tool workaround for new installation

- phpC(dis)I better configuration
This commit is contained in:
paolo
2016-08-03 11:58:46 +02:00
parent 5fb0408a31
commit 92a81ae3a4
3 changed files with 26 additions and 15 deletions
+8
View File
@@ -36,6 +36,14 @@ class basis_db
public function __construct($ci)
{
$this->ci=$ci;
if (!defined('FHC_INTEGER'))
{
define('FHC_INTEGER',1);
define('FHC_STRING',2);
define('FHC_BOOLEAN',3);
define('FHC_LANG_ARRAY',4);
}
}
public function db_connect()
+14 -14
View File
@@ -8,10 +8,11 @@ build_settings:
host: 'localhost;dbname=template1'
user: 'fhcomplete'
pass: 'fhcomplete'
setup:
composer:
# directory: ""
# action: "install"
action: "install"
prefer_dist: true
no_dev: true
pgsql:
@@ -31,7 +32,10 @@ test:
directories:
- "application/"
recursive: true
php_loc:
codeception:
config: "tests/codeception/"
path: "tests/codeception/_output/"
# php_loc:
# php_docblock_checker:
# path: "application/controllers/"
# allowed_warnings: 100
@@ -41,13 +45,17 @@ test:
# standard: "tests/codesniffer/FHComplete"
# allowed_errors: 200
# allowed_warnings: 200
codeception:
config: "tests/codeception/"
path: "tests/codeception/_output/"
# php_unit:
# directory: "tests/phpunit/"
complete:
clean_build:
remove:
- index.php
- config/global.config.inc.php
- config/cis.config.inc.php
- config/vilesci.config.inc.php
- config/system.config.inc.php
# xmpp:
# username: "fhcomplete"
# password: "fhcomplete1q2w3blah.im"
@@ -60,17 +68,9 @@ complete:
# tls: 1
# alias: "jabber.blah.im"
# date_format: "%d.%m.%Y"
clean_build:
remove:
- index.php
- config/global.config.inc.php
- config/cis.config.inc.php
- config/vilesci.config.inc.php
- config/system.config.inc.php
success:
# shell:
# - "cd %BUILD_PATH% && chmod u+x copyBuild.sh && ./copyBuild.sh" # Copy Build
# - "curl 'http://localhost/backend/Migrate/'" # DB-Installation
# - "cd /var/www/html/ && sudo -u wsp doxygen Doxyfile" # Doxygen
# - "cd /var/www/html/ && sudo -u wsp doxygen Doxyfile" # Doxygen
+4 -1
View File
@@ -1310,7 +1310,10 @@ if($result = $db->db_query("SELECT * FROM public.tbl_vorlage WHERE vorlage_kurzb
$qry = "INSERT INTO public.tbl_vorlage(vorlage_kurzbz, bezeichnung, anmerkung,mimetype)
VALUES('Bewerberakt','Bewerberakt Deckblatt', 'wird als Deckblatt fuer den Bewerberakt verwendet', 'application/vnd.oasis.opendocument.text');";
$text = file_get_contents('xsl/Bewerberakt.xsl');
$testQuery = "SELECT setval('seq_vorlagestudiengang_vorlagestudiengang_id', max(vorlagestudiengang_id)) FROM tbl_vorlagestudiengang;";
$testResult = $db->db_query($testQuery);
$text = file_get_contents('./system/xsl/Bewerberakt.xsl');
while($row = $db->db_fetch_object($result))
{