forked from AimalAzmi/codeigniter-migrations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmigrate_help.txt
42 lines (25 loc) · 1.2 KB
/
migrate_help.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
----------------------------------------------------
Migrate Class (Version - #) for Codeigniter
package Migrations for Codeigniter
subpackage
category
author Muhammad Aimal <[email protected]>
link
-----------------------------------------------------
IMPORTANT
=========
- Requires a working DB connection.
- The sorting and naming of the files will be done as 'timestamp' by default.
- This can be changed in config/migration.php throught $config['migration_type'].
- Use the keyword 'modify' when creating a migration to 'alter' a table.
- This will create a migration file with code to alter table.
Available Methods
=================
index() : The main migration file creation method.
current() : Migrates to the currently set migration version.
latest() : Migrates to the very latest migration version.
rollback($version = 0) : Migrates to the '$version' version.
reset($rollback = TRUE) : Deletes all migration files, Resets the migrations table and calls $this::rollback(0) if $rollback is set to TRUE.
last() : Rollbacks the migrations one step back.
info() : A table showing migrations information.
help() : Displays a help section.