forked from mpmont/ci-snippets
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmigration.sublime-snippet
More file actions
34 lines (28 loc) · 845 Bytes
/
Copy pathmigration.sublime-snippet
File metadata and controls
34 lines (28 loc) · 845 Bytes
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
<snippet>
<content><![CDATA[
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Migration_${1:${TM_FILENAME/([0-9]+)_(.+)\..+|.*/\u$2/:Class_name}} extends ${2:CI}_Migration {
public function __construct()
{
\$this->load->dbforge();${3:
\$this->load->database();}
}
public function up()
{
${4}
}
public function down()
{
${5}
}
}
/* End of file ${TM_FILENAME:${1/(.+)/\l$1.php/}} */
/* Location: ./${TM_FILEPATH/.+((?:application).+)/$1/:application/migrations/${1/(.+)/\l$1.php/}} */
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>migration</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.php, text.html.basic, text.plain</scope>
<description>CI - Base Migration</description>
</snippet>