mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-19 16:02:15 +00:00
- Migration tool workaround for new installation
- phpC(dis)I better configuration
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user