Overview
Comment:Fix install issues
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev | 1.0.0-alpha1
Files: files | file ages | folders
SHA1: fbf65537eaab2c09b7270fbdcd851e9cc50f73a7
User & Date: bohwaz on 2020-10-24 20:44:35
Other Links: branch diff | manifest | tags
Context
2020-10-25
01:07
Add 2018 accounting chart for France, use it for upgrade and install, and archive old SQL schemas and migrations check-in: e807e8f5d7 user: bohwaz tags: dev
2020-10-24
20:44
Fix install issues check-in: fbf65537ea user: bohwaz tags: dev, 1.0.0-alpha1
20:18
Release 1.0.0-alpha1 check-in: 85c6d65338 user: bohwaz tags: dev, 1.0.0-alpha1
Changes

Added src/include/data/schema.sql version [bdddcd8200].



>
1
1.0.0_schema.sql

Modified src/include/lib/Garradin/DB.php from [9be1dc4464] to [7aa040ef50].

14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

    static protected $_instance = null;

    static public function getInstance($create = false, $readonly = false)
    {
        if (null === self::$_instance) {
            self::$_instance = new DB('sqlite', ['file' => DB_FILE]);

            $flags = \SQLITE3_OPEN_READWRITE;

            if ($create)
            {
                $flags |= \SQLITE3_OPEN_CREATE;
            }

            self::$_instance->flags = $flags;
        }

        return self::$_instance;
    }

    private function __clone()
    {







<
<
<
<
<
<
<
<
<







14
15
16
17
18
19
20









21
22
23
24
25
26
27

    static protected $_instance = null;

    static public function getInstance($create = false, $readonly = false)
    {
        if (null === self::$_instance) {
            self::$_instance = new DB('sqlite', ['file' => DB_FILE]);









        }

        return self::$_instance;
    }

    private function __clone()
    {

Modified src/include/lib/Garradin/Install.php from [3140a79786] to [e972d28cdf].

129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
		$wiki->editRevision($id_page, 0, [
			'id_auteur' =>  $id_membre,
			'contenu'   =>  "Bienvenue dans l'administration de ".$nom_asso." !\n\n"
				.   "Utilisez le menu à gauche pour accéder aux différentes rubriques.",
		]);
		$config->set('accueil_connexion', $page);

		// Mise en place compta
		$comptes = new Compta\Comptes;
		$comptes->importPlan();

		$comptes = new Compta\Categories;
		$comptes->importCategories();

		$ex = new Compta\Exercices;
		$ex->add([
			'libelle'   =>  'Premier exercice',
			'debut'     =>  date('Y-01-01'),
			'fin'       =>  date('Y-12-31')
		]);








<
<
<
<
<
<
<







129
130
131
132
133
134
135







136
137
138
139
140
141
142
		$wiki->editRevision($id_page, 0, [
			'id_auteur' =>  $id_membre,
			'contenu'   =>  "Bienvenue dans l'administration de ".$nom_asso." !\n\n"
				.   "Utilisez le menu à gauche pour accéder aux différentes rubriques.",
		]);
		$config->set('accueil_connexion', $page);








		$ex = new Compta\Exercices;
		$ex->add([
			'libelle'   =>  'Premier exercice',
			'debut'     =>  date('Y-01-01'),
			'fin'       =>  date('Y-12-31')
		]);