Skip to content

Commit a753074

Browse files
committed
fixtures and useful info
1 parent a479ced commit a753074

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+6257
-0
lines changed
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
[
2+
{
3+
"query": "ALTER TABLE users ADD COLUMN email TEXT",
4+
"ast": {
5+
"version": 130008,
6+
"stmts": [
7+
{
8+
"stmt": {
9+
"AlterTableStmt": {
10+
"relation": {
11+
"relname": "users",
12+
"inh": true,
13+
"relpersistence": "p",
14+
"location": 12
15+
},
16+
"cmds": [
17+
{
18+
"AlterTableCmd": {
19+
"subtype": "AT_AddColumn",
20+
"def": {
21+
"ColumnDef": {
22+
"colname": "email",
23+
"typeName": {
24+
"names": [
25+
{
26+
"String": {
27+
"str": "text"
28+
}
29+
}
30+
],
31+
"typemod": -1,
32+
"location": 35
33+
},
34+
"is_local": true,
35+
"location": 29
36+
}
37+
},
38+
"behavior": "DROP_RESTRICT"
39+
}
40+
}
41+
],
42+
"relkind": "OBJECT_TABLE"
43+
}
44+
}
45+
}
46+
]
47+
}
48+
},
49+
{
50+
"query": "ALTER TABLE users DROP COLUMN email",
51+
"ast": {
52+
"version": 130008,
53+
"stmts": [
54+
{
55+
"stmt": {
56+
"AlterTableStmt": {
57+
"relation": {
58+
"relname": "users",
59+
"inh": true,
60+
"relpersistence": "p",
61+
"location": 12
62+
},
63+
"cmds": [
64+
{
65+
"AlterTableCmd": {
66+
"subtype": "AT_DropColumn",
67+
"name": "email",
68+
"behavior": "DROP_RESTRICT"
69+
}
70+
}
71+
],
72+
"relkind": "OBJECT_TABLE"
73+
}
74+
}
75+
}
76+
]
77+
}
78+
},
79+
{
80+
"query": "ALTER TABLE users RENAME COLUMN name TO full_name",
81+
"ast": {
82+
"version": 130008,
83+
"stmts": [
84+
{
85+
"stmt": {
86+
"RenameStmt": {
87+
"renameType": "OBJECT_COLUMN",
88+
"relationType": "OBJECT_TABLE",
89+
"relation": {
90+
"relname": "users",
91+
"inh": true,
92+
"relpersistence": "p",
93+
"location": 12
94+
},
95+
"subname": "name",
96+
"newname": "full_name",
97+
"behavior": "DROP_RESTRICT"
98+
}
99+
}
100+
}
101+
]
102+
}
103+
}
104+
]

0 commit comments

Comments
 (0)