Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张磊
/
FileStorageBeego
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
34936dde
authored
2014-06-30 23:50:45 +0800
by
astaxie
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' into develop
2 parents
aa004ed9
f92ce9af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
orm/cmd_utils.go
router.go
orm/cmd_utils.go
View file @
34936dd
...
...
@@ -148,6 +148,10 @@ func getDbCreateSql(al *alias) (sqls []string, tableIndexes map[string][]dbIndex
column
+=
" "
+
"NOT NULL"
}
if
fi
.
initial
.
String
()
!=
""
{
column
+=
" DEFAULT "
+
fi
.
initial
.
String
()
}
if
fi
.
unique
{
column
+=
" "
+
"UNIQUE"
}
...
...
router.go
View file @
34936dd
...
...
@@ -603,7 +603,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
if
!
findrouter
{
if
t
,
ok
:=
p
.
routers
[
r
.
Method
];
ok
{
runObject
,
p
:=
t
.
Match
(
r
.
URL
.
Path
)
runObject
,
p
:=
t
.
Match
(
strings
.
ToLower
(
r
.
URL
.
Path
)
)
if
r
,
ok
:=
runObject
.
(
*
controllerInfo
);
ok
{
routerInfo
=
r
findrouter
=
true
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment