-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate.txt
545 lines (374 loc) · 16.2 KB
/
update.txt
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
UPDATING OLD SITES:
===================
Relative old sites (say 500 revisions less) could best be updated with a clean install:
- Install a fresh FlexyAdmin site and start with a fresh demo database
- Copy all the assets from the old site to the new install
- Copy all the views,models,libraries and helpers from the old site to the new install. Check if they work as you expect.
- Update modules/plugins if they have newer versions.
- Import all you're tbl_ and rel_ tables from the old to the new site
- Import the values from tbl_site and cfg_ tables. Make sure all the current fields are kept!
- Test and adjust the new install as if it is a new site.
UPDATING RECENT SITES:
======================
For recent sites the update processes described below should work:
- check your version
- perform all the steps from your version to the latest:
UPDATE 3.5.0-rc.21
==================
- Vervang 'limit' = 0, door 'limit' = NULL, in config/menu.php
UPDATE 3.5.x
============
- Vervang map sys
- Vervang site/Controller.php
- Run update script: `admin/update/....` (oa SQL update 3.5.0)
- Rewrite data->find()
- Als je plugin_automenu met res_menu_result gebruikte zul je dat op een andere manier moeten doen. Dat kan met site/config/menu.php
- Cronjob libraries moet worden herschreven als Models (verplaats naar map models & vervang alle $this->CI naar $this->)
- Links naar file/... werken niet meer, moeten worden aangepast naar: _media/...
- FlexyAdmin uitbreidingen op ->db-> zijn depricated, en standaard niet meer geladen.
- Zet je code om naar ->data->
- Of als het niet anders kan, stel in flexyadmin_config $config['USE_OLD_DB'] = TRUE;
UPDATE 3.4.x
============
- Vervang map sys
- Maak de map `public` en vul die met de laatste installatie
- Vervang de assets folder van `public` met die van je eigen site uit de map `site`.
- Vervang in alle views `<?=SITEPATH?>/assets` naar `_media`
- Run update script: `admin/update/....` (oa SQL update 3845)
- LET OP: Standaard is FlexyAdmin nu met een veilige folder structuur. Lees de readme.md om te kijken hoe je terug kunt.
UPDATE 3.3.x
============
- Vervang map sys
- Run update script: `admin/update/....` (oa SQL update 3845)
UPDATE 3.2.x
============
LET OP: Door deze update heeft iedere user een nieuw wachtwoord nodig!!
- Update naar laatste versie van IonAuth:
- Vervang de map `sys`
- Als je de library ->user of ->ion_auth gebruikte moet je je code aanpassen naar de library ->flexy_auth (zie de methods daar, zijn eenvoudiger en degelijker geworden dan die in ->user)
- Run update script: `admin/update/....` (oa SQL update 3653)
- User met id=1 (meestal 'Super Admin') heeft tijdelijk het wachtwoord 'admin' gekregen.
- Update alle wachtwoorden.
UPDATE 3.1.2 (3654...)
======================
- Als je 'Data_Model' hebt gebruikt, hernoem deze overal naar 'Data':
- Hernoem alle data_model aanroepen in je code: vervang '->data_model->' naar '->data->'
- In eigen models in models/data: vervang 'extends Data_Model' naar 'extends Data'
- De relaties naamgeving en resultaten zijn veranderd in Data:
- Kijk voor voorbeelden van hoe de aanroepen en de resultaten nu zijn op de pagina /admin/test/relations
- En pas je code aan zodat die net zo gebruik maakt van relaties
- Als je 'data_model->with_grouped()' gebruikt, pas dit aan naar 'data->with_json()' (en de code die iets met het resultaat doet)
- Als je 'crud->' gebruikt of de crud models, pas die code aan en gebruik 'data->'
- Vervang site/Controller.php (of voeg regels 162,163 toe)
UPDATE 3.0.7 (3592...)
======================
- Update naar CI 3.0.6:
- Vervang de map `sys`
- Vervang `index.php`
UPDATE 3.0.6 (3518...)
======================
- Update naar CI 3.0.4:
- Vervang de map `sys`
- Login als admin en run update scripts:
- Run update script: `admin/update/database` // update_r3505.sql
- Vervang site/Controller.php (of pas regel 189 & 190 aan)
UPDATE 3.0.4 (3490...)
======================
- Update naar CI 3.0.3:
- Vervang de map `sys`
- Vervang `index.php`
- Login als admin en run update scripts:
- Run update script: `admin/update/database` // update_r3285.sql
- Run update script: `admin/update/database/code/3480`
UPDATE 3.0 (3089?)
=================
- Run SQL Update update_r3067.sql (Deze update kan niet binnen FlexyAdmin gedaan worden, gebruik dus PhpMyAdmin oid)
- Vervang .htaccess en htaccess.htaccess (of voeg iig de code onder dit commentaar toe: # Tell IE to use latest engine)
- Vervang de map site/tests
- Update naar CI3.x (ea):
- Vervang de map `sys`
- Vervang `index.php`
- Vervang `site/controller.php` door `Controller.php`
- of vervang '$this->ajax_module' door '$this->is_ajax_module`
- en voeg `if (defined('PHPUNIT_TEST')) return;` op regel 30
- Vervang `site/language/nl/regex_validation_lang.php`
- Vervang `site/config/unittests.php`
- Verwijder de map `bulk_upload`
- Login als admin en run update scripts:
- Run update script: `admin/update/code/3067`
- Run update script: `admin/update/code/3089`
- Run daarna update script: : `admin/update/all`
UPDATE 3063
===========
- Run SQL update_r2812.sql & update_r2833.sql
- Replace sys folder
- Replace index.php
- Replace controller.php (or delete methods: _call_library() & _module(), and replace method _redirect() )
- Delete site/libraries/forms.php & site/libraries/ajax_forms.php
UPDATE 2777
===========
- Run SQL update_r2716.sql t/m update_r2753.sql
- Run add_cfg_email.sql als je die niet hebt toegevoegd
- Replace current sys map
- Replace site/libraries/forms.php
- Add package.json, bower.json & gulpfile.js to root (als je ze wilt gebruiken)
- In site/config/config.php change $config['css_style']... into $config['framework']...
- In site/views/site.php check paths to css and js files
- Verplaats /css/*.less bestanden naar de nieuwe map /less-default/
- Voeg de map /assets/less-bootstrap toe (als je bootstrap wilt gebruiken)
UPDATE 2715
===========
- Replace current sys map
- Replace site/libraries/forms.php
- Replace index.php
UPDATE 2551
===========
- Replace current sys map
- Replace site/libraries/forms.php
UPDATE 2543
===========
- Replace current sys map
- Or only sys/libraries/plugin_stats.php
UPDATE 2535
===========
- Run SQL update_r2508.sql
- Replace current sys map with new sys map
- Add site/views/menu and its files
- Add site/config/build.php
- If you need some of the new features: add the corresponding items in site/config/config.php
- Replace controller.php or change it manual:
- Before line 77: $this->menu->set_current($this->site['uri']);
Add: if ($this->config->item('menu')) $this->menu->initialize($this->config->item('menu'));
- Remove line 143 & 144: foreach($page as $f=>$v) {if (get_prefix($f)=='txt') $page[$f]=$this->content->render($v);}
- Add these lines to config.php
- For testmode option: $config['testmode'] = false;
- For new Menu options: $config['menu']=array('fields'=>array(),'view_path'=>'menu');
Or keep the old menu and add: $config['use_old_menu']=true;
- If you keep using the old menu, and if you created a menu object with $menu = new Menu(), change this to $menu = new Old_menu()
- Replace .htaccess with the new htaccess.htaccess
UPDATE 2461
===========
- Replace current sys map with new sys map
UPDATE 2459
===========
- Replace current sys map with new sys map
- If you're site has forms with checkboxes and javascript events for them: test them. The checkbox is a bit changed (to normal and expected behavior)
UPDATE 2434
===========
- Replace current sys map with new sys map
- Run update_r2380.sql
- Run update_r2432.sql
- If needed for server: replace all <? in <?php in .php files in site (with regular expression: "<\?\s" replaced with "<?php " )
UPDATE 2359
===========
- Replace current sys map with new sys map
- Run update_r2354.sql
- Rename all 'callback_...' validation rules to the same name without 'callback_' as prefix (standard in config/forms.php and cfg_fields.str_validation_rules)
UPDATE 2348
===========
- Replace current sys map with new sys map
- Replace site/libraries/forms/php & site/views/forms.php
- If you use the login module:
- install version 005
- remove site/libraries/plugin_login_activate (also from cfg_admin_menu). This is replaced with actions when showing cfg_users
UPDATE 2330
===========
- Replace current sys map with new sys map
- If you don't wan't to change uri's, set b_freeze_uri in those tables.
- Run ../admin/plugin/uri/... for alle tables with uri's
- Refresh res_menu_result if it exists.
UPDATE 2315
===========
- Replace current sys map with new sys map
UPDATE 2305
===========
- Replace current sys map with new sys map
- Replace site/libraries/forms.php
UPDATE 2290
===========
- Replace current sys map with new sys map
- Run DB updates update_r2277.sql
- Replace current userguide map with new userguide map
- Replace site/libraries/forms.php
NB: Allmost all modules/plugins and thrid part jquery plugins are removed.
The modules/plugins are now seperate .zip files that can be installend with plugin_install_plugin
UPDATE to r2248
===============
- Replace current sys map with new sys map
- Replace current userguide map with new userguide map
- Replace site/libraries/login.php
- Replace site/libraries/plugin_login_activate.php
UPDATE to r2238
===============
- Replace current sys map with new sys map
- Replace current userguide map with new userguide map
UPDATE to r2227
===============
- Replace current sys map with new sys map
- Change controller.php[39] if ($this->ajax_module) {
- Update all files for plugins and modules: forms, blog, comments, login (if you need them)
UPDATE to r2198
===============
- Replace current sys map with new sys map
UPDATE to r2192
===============
- Replace current sys map with new sys map
- Replace index.php with new one
- Run DB updates (from FlexyAdmin)
UPDATE to r2151
===============
- Replace current sys map with new sys map
UPDATE to r2148
===============
- Replace current sys map with new sys map
- Replace all files for module login.php
- Replace all files for plugin login_activate.php
UPDATE to r2108
===============
- Replace current sys map with new sys map
- Replace controller.php or at least:
* Line 109: if ($this->no_content()) $this->show_404();
* replace: function _module()
* replace: function _call_library()
- Run DB updates (from FlexyAdmin)
- Replace lines 15-20 in config_local.php with:
if (!isset($config['base_url'])) {
// If no automatic base_url, comment this:
die("sorry no automatic 'base_url', edit '".SITEPATH."config_local.php'.");
// And uncomment this with right base_url
// $config['base_url'] = "http://localhost/";
}
UPDATE to r1987
===============
- Replace current sys map with new sys map
Only if you need to load modules before anything else:
- Replace site/controller.php or at least replace the _page() method.
UPDATE to r1975
===============
- Replace current sys map with new sys map
- Replace index.php with new one
- Run all db/update_r1804 - r1957sql
Only if you need the new options (AJAX modules, newer plugins/modules):
- Replace site/controller.php or at least the changes:
- line 35:46 - for AJAX module loading
- function _module()
- function _call_library()
- function _redirect()
- Replace all standard modules/plugins in site/libraries and there views in views/
- Add new modules/plugins and there views
UPDATE to 1802
==============
- Replace current sys map with new sys map
UPDATE to 1754
==============
- Replace current sys map with new sys map
UPDATE to 1740
==============
- Replace current sys map with new sys map
- Replace index.php with new one
- Run db/update_r1610.sql (for IPv6)
UPDATE to 1525
==============
- Replace current sys map with new sys map
- Replace site/controller.php (at least: function _set_language() )
- If you use module_login, replace it with the new one
UPDATE to 1490
==============
- Replace current sys map with new sys map
UPDATE to 1437
==============
- Replace current sys map with new sys map
- Run update queries: update_r1432.sql
UPDATE to 1413
==============
Again a big update, but not a difficult one to perform:
If upgrading from older versions: check all earlier versions first.
- Replace current sys map with new sys map
- Replace index.php with new one (update to CI 2.1)
- Run update queries: 1385-1391 (works within FlexyAdmin import)
UPDATE to 1332
==============
If upgrading from older versions: check all earlier versions first.
- Replace current sys map with new sys map
- if you have own Modules which use a config file, delete the names in this config file: example: $config['your_module']['setting']=... => $config['setting']=...
- if you have own Plugins:
- Move them to Libraries
- Give them a config file and put all settings there.
- Rename $this->_add_content to $this->add_content
- Rename all CI calls: $this->... to $this->CI->...
- If you extended the User or Ion_auth library: rename $this->ci is renamed to $this->CI
- Form->update is removed. Use $data=$form->get_data(); $this->crud->table(...)->update('where'=>array(...), 'data'=>$data );
UPDATE to 1314
==============
If upgrading from older versions: check all the versions.
- Replace current sys map with new sys map
UPDATE to 1297
==============
If upgrading from 1262 or later:
- Replace current sys map with new sys map
- form is not a model anymore but a library, so you need to change the loading calls of form: "->load->model('form')" to "->load->library('form')"
If upgrading from older version: check by 1262
UPDATE to 1280
==============
If upgrading from 1262 or later:
- Replace current sys map with new sys map
If not see here:
UPDATE to 1262
==============
This is a major update:
- the latest CodeIgniter 2.0.3
- new Authentication systen: Ion Auth
- Remember current usernames and password !!
- Run MySQL updates 1125 & 1190 & 1230
- Replace index.php
- Replace current sys map with new sys map
UPDATES to 998 and up
====================
- Write down the current revision (see in the bottom bar in FlexyAdmin or in sys/build.txt)
- Run all SQL updates from your revision until the latest, you can do this with the Import Database option in FlexyAdmin.
- Replace current sys map with new sys map
- To make sure the assets maps are safe and you are updating from a pre r990 version:
- After logging in to FlexyAdmin, once run this uri: admin/plugin/safe_assets
UPDATES to 930 and up
====================
- Write down the current revision (see in the bottom bar in FlexyAdmin or in sys/build.txt)
- Run all SQL updates from your revision until the latest, you can do this with the Import Database option in FlexyAdmin.
- Replace current sys map with new sys map
UPDATES to 899
==============
- Write down the current revision (see in the bottom bar in FlexyAdmin or in sys/build.txt)
- Run all SQL updates from your revision until the latest, you can do this with the Import Database option in FlexyAdmin.
- Replace current sys map with new sys map
- Replace .htaccess
UPDATES r802 to r840
===============
START NEW SITE:
- If you start a new site, start with complete new installation!
UPDATE OLD SITE:
- Write down the current revision (see in the bottom bar in FlexyAdmin or in sys/build.txt)
- Run all SQL updates from your revision until the latest (you can find the SQL updates in db/ ).
You can do this with the Import Database option in FlexyAdmin.
- Replace current sys map with new sys map
- Replace:
- robots.txt
- Add:
- sitemap.xml
UPDATES r503 to r801
=========================
- Write down the current revision (see in the bottom bar in FlexyAdmin or in sys/build.txt)
- Run all SQL updates from your revision until the latest (you can find the SQL updates in db/ ).
You can do this with the Import Database option in FlexyAdmin.
- Replace current sys map with new sys map
UPDATE to r502
=========================
- Write down the current revision (see in the bottom bar in FlexyAdmin or in sys/build.txt)
- Run all SQL updates from your revision until the latest (you can find the SQL updates in db/ ).
- Remove the current sys map
- Copy the new sys map
- If you start a new site:
- Copy the site map
- Copy .htacces,index.php and robots.txt to the root of your site
- If you update a current site:
- Add site/config and move your config files from site/ to site/config/ (database.php etc )
- Add the new config files (found in the original site/config)
- Add site/stats and give it all rights (online)