Skip to content

Commit 0620b86

Browse files
committed
Fix doc typos
1 parent 045a925 commit 0620b86

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/6. Migrations.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
Migrations convert the data from one version of the database to another. They are atomic and can be run individually or in a group. Even if run in a group, they can still be reverted individually.
55

6+
## Migration Philosophy
7+
PHPFUI/ORM is a schema first ORM. This makes it easy to initialize the ORM from an existing database. Use migrations to alter the schema, then use a variation of the generateCRUD.php script to generate the **Definition** files.
8+
69
## Migration Table
710
The table `migration` keeps track of the current version of the database. It contains the version number and the time it was run for deployment tracking.
811

@@ -109,5 +112,5 @@ The [\PHPFUI\ORM\Migrator](http://phpfui.com/?n=PHPFUI%5CORM&c=Migrator) class i
109112
- **addColumn**(string $table, string $field, string $parameters) : bool
110113
- Always adds a column
111114
- **alterColumn**(string $table, string $field, string $parameters, string $newName = '') : bool
112-
- Alters a column incluing a reneme if $newName is provided
115+
- Alters a column including renaming the column if $newName is provided
113116

0 commit comments

Comments
 (0)