summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/installation/upgrade_160.rst
blob: e5d26611b59ebe1eeefe34f2ccd06169bd7343ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#############################
Upgrading from 1.5.4 to 1.6.0
#############################

Before performing an update you should take your site offline by
replacing the index.php file with a static one.

Step 1: Update your CodeIgniter files
=====================================

Replace these files and directories in your "system" folder with the new
versions:

-  system/codeigniter
-  system/database
-  system/helpers
-  system/libraries
-  system/plugins
-  system/language

.. note:: If you have any custom developed files in these folders please
	make copies of them first.

Step 2: Add time_to_update to your config.php
===============================================

Add the following to application/config/config.php with the other
session configuration options

::

	$config['sess_time_to_update']         = 300;


Step 3: Add $autoload['model']
==============================

Add the following to application/config/autoload.php

::

	/*
	| -------------------------------------------------------------------
	| Auto-load Model files
	| -------------------------------------------------------------------
	| Prototype:
	|
	| $autoload['model'] = array('my_model');
	|
	*/

	$autoload['model'] = array();


Step 4: Add to your database.php
================================

Make the following changes to your application/config/database.php file:

Add the following variable above the database configuration options,
with $active_group

::

	$active_record = TRUE;


Remove the following from your database configuration options

::

	$db['default']['active_r'] = TRUE;


Add the following to your database configuration options

::

	$db['default']['char_set'] = "utf8";
	$db['default']['dbcollat'] = "utf8_general_ci";


Step 5: Update your user guide
==============================

Please also replace your local copy of the user guide with the new
version.