Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Propel bundle optimizations by David Zulke

git-svn-id: http://svn.textmate.org/trunk/Bundles/Propel.tmbundle@2656 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
commit 122a77257e0f2d5a078aa87b583b01ff85ea7545 1 parent 099fe2c
@fabpot fabpot authored
View
3  Snippets/xml - column.plist
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>&lt;column name="${1:name}" type="${2:type}" /&gt;
-</string>
+ <string>&lt;column name="${1:name}" type="${2:type}"${3: required="${4:true}"}${5: default="${6:}"} /&gt;</string>
<key>name</key>
<string>xml - column</string>
<key>scope</key>
View
5 Snippets/xml - foreign key.plist
@@ -4,9 +4,8 @@
<dict>
<key>content</key>
<string>&lt;foreign-key foreignTable="${1:table}"&gt;
- &lt;reference local="${1:table}_id" foreign="id"/&gt;
-&lt;/foreign-key&gt;
-</string>
+ &lt;reference local="${1:table}_id" foreign="${2:id}"/&gt;
+&lt;/foreign-key&gt;</string>
<key>name</key>
<string>xml - foreign key</string>
<key>scope</key>
View
5 Snippets/xml - index.plist
@@ -4,9 +4,8 @@
<dict>
<key>content</key>
<string>&lt;index name="${1:key}_index"&gt;
- &lt;index-column name="$1" /&gt;
-&lt;/index&gt;
-</string>
+ &lt;index-column name="${1:key}" /&gt;
+&lt;/index&gt;</string>
<key>name</key>
<string>xml - index</string>
<key>scope</key>
View
3  Snippets/xml - primary key.plist
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>&lt;column name="${1:id}" type="${2:integer}" required="true" primaryKey="true" autoincrement="true" /&gt;
-</string>
+ <string>&lt;column name="${1:id}" type="${2:integer}" required="true" primaryKey="true" autoincrement="true" /&gt;</string>
<key>name</key>
<string>xml - primary key</string>
<key>scope</key>
View
7 Snippets/xml - table.plist
@@ -3,10 +3,9 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>&lt;table name="${1:name}" phpName="${2:php_name}"&gt;
- $0
-&lt;/table&gt;
-</string>
+ <string>&lt;table name="${1:name}"${2: phpName="${3:php_name}"}&gt;
+ $0
+&lt;/table&gt;</string>
<key>name</key>
<string>xml - table</string>
<key>scope</key>
View
18 Snippets/xml - unique.plist
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>&lt;unique name="unique_${1:key}"&gt;
+ &lt;unique-column name="${1:key}" /&gt;
+&lt;/unique&gt;</string>
+ <key>name</key>
+ <string>xml - unique</string>
+ <key>scope</key>
+ <string>text.xml</string>
+ <key>tabTrigger</key>
+ <string>&lt;u</string>
+ <key>uuid</key>
+ <string>2340D768-1E9F-455C-AC2E-1F1570A1424F</string>
+</dict>
+</plist>
View
1  info.plist
@@ -11,6 +11,7 @@
<string>BCE8C7F8-DFE0-4AEC-916C-E7541F2AC677</string>
<string>251F74BF-A606-4F1E-847F-EAB5CFF99954</string>
<string>09EF9AD8-F6B8-4C66-BBD0-F8E1CC6AC97F</string>
+ <string>2340D768-1E9F-455C-AC2E-1F1570A1424F</string>
</array>
<key>uuid</key>
<string>0F9F8B28-1E5D-4856-B5F2-34127A4A908A</string>
Please sign in to comment.
Something went wrong with that request. Please try again.