Skip to content

Commit 6767d76

Browse files
Changing README n stuff.
1 parent 87edd26 commit 6767d76

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

README renamed to README.textile

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
h1. Codeignit*o*r-Migrations (with an o yo)
2+
3+
h2. Authors
4+
Forked By:
5+
webPragmatist <[email protected]>
6+
http://www.webPragmatist.com/
7+
18
By:
29
Spicer Matthews <[email protected]>
310
Cloudmanic Labs, LLC
@@ -6,8 +13,9 @@ By:
613
Based On:
714
http://codeigniter.com/wiki/Migrations/
815
By: Mat'as Montes
16+
17+
h3. Descriptions
918

10-
Description:
1119
An open source utility for Codeigniter inspired by Ruby on Rails.
1220

1321
The one thing Ruby on Rails has that Codeigniter does not have built in
@@ -19,7 +27,8 @@ Description:
1927
are powerful and work in nearly the same way. Maybe someday we can create a joint project
2028
with Mat'as or even better get this into that core of Codeigniter.
2129

22-
Install:
30+
h4. Installation
31+
2332
Copy the files to these locations.
2433

2534
migrate.php -> application/libraries/
@@ -28,7 +37,8 @@ Install:
2837
The migration files included in this are just examples. You should install them where ever you
2938
point your $config["migrations_path"] to.
3039

31-
Add these config to your config.php
40+
Add these config to your -config.php- migration.php
41+
3242

3343
/*
3444
|--------------------------------------------------------------------------
@@ -85,10 +95,10 @@ Usage:
8595
The dbmigreate.php controller just shows the use of these functions. If you are going to use it.
8696
remove the 'die();' and put it back in place when you are done.
8797

88-
** THE KICKER **
98+
-** THE KICKER **
8999
At the bottom of migreate.php we assume you are keeping track of your versions with a db table called config. Yes
90100
you can not use this migration script to create that table. You need at least one table installed to boot strap this.
91-
You will want to review the _update_schema_version() function to either modify or copy how it works.
101+
You will want to review the _update_schema_version() function to either modify or copy how it works.
92102

93103
Also, in our applcations we have this code to set our applcation configs. We do not believe in writting to the file system
94104
that is what a database is for :).
@@ -104,7 +114,9 @@ Usage:
104114
}
105115

106116
In this code we set. $this->CI->config->item('migrationversion'); and that is how _get_schema_version()
107-
gets the current version. This is the version this database is set too.
117+
gets the current version. This is the version this database is set too.-
118+
119+
All the above stuff is bullocks in this fork. This guy creates a schema_version table for you an stuffs 0 in it to begin with.
108120

109121
** Suggestion **
110122
We also do this on login to make sure this database is migrated to the version the config files wants it to be migrated too.
@@ -127,5 +139,4 @@ When you auto load the system.php lib this should be your order: $autoload['libr
127139

128140
Here is a video walk through of migrations in action.
129141

130-
http://www.vimeo.com/13490644
131-
142+
http://www.vimeo.com/13490644

0 commit comments

Comments
 (0)