Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 80 lines (76 sloc) 1.431 kb
3e211638 »
2011-07-01 Rolled everything to an exe
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5
6 namespace Manatee {
7 public class Templates {
8 public static string Blank {
9 get {
10 return @"{
11 up:{
12
13 },
14 down:{
15
16 }
17 }";
18 }
19 }
20 public static string CreateTable {
21 get {
22 return @"{
23 up:{
24 create_table:{
25 name:'my_table',
26 columns:[
27 {name:'name', type:'string'},
28 {name:'description', type:'text'}
29 ],
30 timestamps:true
31 }
32 }
33 }";
34 }
35 }
36 public static string AddColumn {
37 get {
38 return @"{
39 up:{
40 add_column:{
41 table:'my_table',
42 columns:[
43 {name:'name', type:string}
44 ]
45 }
46 }
47 }";
48 }
49 }
50 public static string AddIndex {
51 get {
52 return @"{
53 up:{
54 add_index:{
55 table_name:'my_table',
56 columns:[
57 'my_column'
58 ]
59 }
60 }
61 }";
62 }
63 }
64 public static string FK {
65 get {
66 return @"{
67 up:{
68 foreign_key:{
69 from_table:'my_table',
70 to_table:'my_other_table',
71 from_column:'my_table_key',
72 to_column:'my_other_table_PK'
73 }
74 }
75 }";
76 }
77 }
78 }
79 }
Something went wrong with that request. Please try again.