forked from iamfiscus/codeigniter-ion-auth-migration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
44 lines (34 loc) · 1.45 KB
/
README
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
======================================
Ion Auth Database Migration
by Jd Fiscus
======================================
Hey everybody,
If you are using the ion auth authentication library and database migrations,
this is a default migration and insert data that mimic's ion auth's sql file.
INSTALLATION:
- You must have codeigniter-migrations installed (https://github.com/philsturgeon/codeigniter-migrations)
- You must have codeigniter-ion-auth installed (https://github.com/benedmunds/CodeIgniter-Ion-Auth)
Just copy the files from this package to the corresponding folder in your
application folder. For example, copy 001_Create_ion_auth.php to
application/migrations/001_Create_ion_auth.php.
DOCUMENTATION:
In the migration file you can define the tables for 'groups', 'meta', and 'users'
to custom table names that you might specify in your ion auth config. This will change all
the instances of the table names correctly.
If you have the variable $use_config set to TRUE, then the migration will pull in the
correct variables from the Ion Auth config file.
-OR-
You could set them manually if you'd like instead of pulling them in from the config file.
Example:
// Tables
private $groups = 'access';
private $meta = 'profile';
private $users = 'auth';
You can also change the join names to correspond with you custom tables:
// Join names
private $groups_join = 'access_id';
private $users_join = 'auth_id';
Thanks,
-Jd Fiscus
@iamfiscus