forked from dineshkummarc/manatee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTemplates.cs
79 lines (76 loc) · 1.4 KB
/
Templates.cs
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Manatee {
public class Templates {
public static string Blank {
get {
return @"{
up:{
},
down:{
}
}";
}
}
public static string CreateTable {
get {
return @"{
up:{
create_table:{
name:'my_table',
columns:[
{name:'name', type:'string'},
{name:'description', type:'text'}
],
timestamps:true
}
}
}";
}
}
public static string AddColumn {
get {
return @"{
up:{
add_column:{
table:'my_table',
columns:[
{name:'name', type:string}
]
}
}
}";
}
}
public static string AddIndex {
get {
return @"{
up:{
add_index:{
table_name:'my_table',
columns:[
'my_column'
]
}
}
}";
}
}
public static string FK {
get {
return @"{
up:{
foreign_key:{
from_table:'my_table',
to_table:'my_other_table',
from_column:'my_table_key',
to_column:'my_other_table_PK'
}
}
}";
}
}
}
}