astaxie
a7354d2d08
Revert "should use time.Since instead of time.Now().Sub"
2017-09-09 06:29:38 +08:00
astaxie
07a9a2d0f3
Merge pull request #2854 from wgliang/master
...
should use time.Since instead of time.Now().Sub
2017-09-09 06:29:31 +08:00
wangguoliang
c8c25549e7
should use time.Since instead of time.Now().Sub
...
Signed-off-by: wgliang <liangcszzu@163.com>
2017-09-07 19:01:34 +08:00
Radar8
6641a436a2
validation: fix ErrorMap, added func AddError(key, message)
2017-09-06 16:49:21 +08:00
iclinux
1dd50fb65f
Make parent process exit gracefully.
...
With beego.BConfig.Listen.Graceful enabled, when received SIGHUP, we'll fork a child process.
But the parent process still have jobs to finish, So we can't kill the parent process directly.
2017-09-05 11:53:42 +08:00
zhufanmao
4bc4f77c29
return template build error
2017-09-02 17:55:26 +08:00
zhufanmao
ef36ecd376
avoid some proxy not support select command
2017-08-31 20:26:32 +08:00
astaxie
c6cef853c7
Merge pull request #2813 from mlgd/develop
...
Add IPV6 compatibility
2017-08-23 16:54:59 +08:00
astaxie
33ad8d5db4
Merge pull request #2815 from wisererik/patch-1
...
Fix the quick start section of the orm/README.md
2017-08-23 16:53:41 +08:00
astaxie
33e6d57754
Merge pull request #2820 from crazcalm/doc_error
...
fixed mispelled word
2017-08-22 23:18:31 +08:00
Marcus Willock
afa57ca1f2
fixed mispelled word
2017-08-20 23:32:11 +08:00
Erik
510dd02a06
Fix the quick start section of the orm/README.md
...
Increase the init method by adding the `RunSyncdb` method to resolve the problem that the table is not created.
2017-08-11 11:34:18 +08:00
mlgd
166e88c103
Update input.go
2017-08-09 21:05:06 +02:00
mlgd
51b6adeb24
Add IPV6 compatibility
2017-08-09 10:23:03 +02:00
astaxie
51c19c374a
Merge pull request #2801 from nightlyone/patch-1
...
fix bad error code in seesion handling
2017-08-06 22:29:05 +08:00
astaxie
b23452dc3f
Merge pull request #2805 from ninjacn/master
...
comment edit
2017-08-06 22:28:36 +08:00
astaxie
f61038e6bd
Merge pull request #2803 from iamzhout/log_add_milliseconds
...
add millisecond to timestamp in log output
2017-08-06 22:28:19 +08:00
Tao Zhou
b9117e2ff1
add millisecond to timestamp in log output
2017-08-04 00:11:59 +08:00
姚鹏鸣
5a7a3da909
comment edit
2017-08-03 19:15:32 +08:00
Ingo Oeser
3f4502990a
fix bad error code
...
By providing a unique error code instead of a format specifier without using an error formatting function.
2017-08-03 01:52:24 +02:00
astaxie
e14113aa0e
Merge pull request #2656 from BorisBorshevsky/develop
...
Allow injecting dependencies to controllers
2017-07-30 23:36:52 +08:00
astaxie
d96289a81b
Merge pull request #2771 from astaxie/develop
...
v1.9.0
2017-07-19 00:56:48 +08:00
astaxie
4fc95b0d69
gofmt and golint
2017-07-19 00:52:27 +08:00
astaxie
aa3d6c5363
fix the gosimple
2017-07-19 00:37:42 +08:00
astaxie
5ac0cb929c
v1.9.0
2017-07-18 23:58:22 +08:00
astaxie
b27ab53017
fix issue for runMethod and runRouter from context
2017-07-18 23:41:50 +08:00
astaxie
1aba294405
Merge pull request #2740 from xlwcom/master
...
fix the bugs in the "ParseBool" function in the file of config.go
2017-07-18 13:39:45 +08:00
astaxie
657e55ed59
Merge pull request #2692 from jerson/master
...
added statusCode and pattern to FilterMonitorFunc
2017-07-17 11:06:09 +08:00
astaxie
621c25396e
Merge pull request #2766 from yangsf5/master
...
sort ControllerComments
2017-07-17 11:02:28 +08:00
astaxie
715ba918f0
Merge pull request #2744 from gnanakeethan/feature/database-migration
...
[Proposal] Database Migrations;
2017-07-17 10:54:44 +08:00
Gnanakeethan Balasubramaniam
8bb0a70847
Update: Fix in SQL Generation
...
Signed-off-by: Gnanakeethan Balasubramaniam <gnanakeethan@gmail.com>
2017-07-16 08:48:44 +05:30
Gnanakeethan Balasubramaniam
94e79eddcf
Update: removing remnant of revert commit ( a call to function
...
m.DDLSpec() )
Signed-off-by: Gnanakeethan Balasubramaniam <gnanakeethan@gmail.com>
2017-07-16 08:37:27 +05:30
Gnanakeethan Balasubramaniam
749a4028b4
Revert "Update: removing the need to call DDLSpec in the migration file"
...
The odds of getting this perfectly up is not good.
This reverts commit d58ad2ee36
.
2017-07-16 08:11:10 +05:30
Gnanakeethan Balasubramaniam
fc55c2b57c
Update: missed to call DDLSpec in Down migration
...
Signed-off-by: Gnanakeethan Balasubramaniam <gnanakeethan@gmail.com>
2017-07-16 07:30:53 +05:30
Gnanakeethan Balasubramaniam
d58ad2ee36
Update: removing the need to call DDLSpec in the migration file
...
Signed-off-by: Gnanakeethan Balasubramaniam <gnanakeethan@gmail.com>
2017-07-16 07:24:58 +05:30
Gnanakeethan Balasubramaniam
cb38ab4f85
Update: fixing a SQL generation code
...
Signed-off-by: Gnanakeethan Balasubramaniam <gnanakeethan@gmail.com>
2017-07-16 07:10:09 +05:30
shanfeng.yang
fc86f6422d
sort ControllerComments
2017-07-15 17:26:20 +08:00
Gnanakeethan Balasubramaniam
d453242e48
Update: moving package to bottom
...
Signed-off-by: Gnanakeethan Balasubramaniam <gnanakeethan@gmail.com>
2017-07-14 14:42:56 +05:30
Gnanakeethan Balasubramaniam
7c2ec075a4
Update: fixing some methods and adding documentation
...
Signed-off-by: Gnanakeethan Balasubramaniam <gnanakeethan@gmail.com>
2017-07-13 21:03:30 +05:30
Gerson Alexander Pardo Gamez
c903de41e4
updated sample for FilterMonitorFunc
...
added pattern to sample
2017-07-12 09:51:37 -05:00
astaxie
e8c8366308
Merge pull request #2754 from imiskolee/develop
...
supported gzip for req.Header has `Content-Encoding: gzip`
2017-07-12 19:57:29 +08:00
astaxie
4901567bba
Merge pull request #2749 from satng/patch-4
...
oracle插入占位符
2017-07-12 19:49:32 +08:00
MiskoLee
29bcd31b27
supported gzip for req.Header has Content-Encoding: gzip
2017-07-10 21:27:54 +08:00
satng
83a563c0ab
oracle插入占位符
2017-07-09 12:25:51 +08:00
Gnanakeethan Balasubramaniam
e888fee4e0
Update: Foreign Key & Comments
...
Summary: Foreign Key functions are now available
Signed-off-by: Gnanakeethan Balasubramaniam <gnanakeethan@gmail.com>
2017-07-06 20:26:37 +05:30
Gnanakeethan Balasubramaniam
c1ba11f531
Fixing typo
...
Signed-off-by: Gnanakeethan Balasubramaniam <gnanakeethan@gmail.com>
2017-07-06 14:58:40 +05:30
Gnanakeethan Balasubramaniam
ed558a0e70
Fix: typo due to find and replace migration renamed to m
...
Signed-off-by: Gnanakeethan Balasubramaniam <gnanakeethan@gmail.com>
2017-07-06 07:45:07 +05:30
Gnanakeethan Balasubramaniam
6b9c3f4824
[Proposal] Database Migrations;
...
Summary: The database migrations now can be created using the methods on
the migration struct. it does not break any existing migration features.
it upgrades the migration struct and adds few more struct types so that
the migrations can be efficiently generated for create, alter, reverse,
drop.
Current Features:
* Supports creation of columns
* `m.NewCol("name").SetDataType("VARCHAR(10)").SetNullable("true")`
* **NOTE** `SetNullable` & `SetDefault` methods should not be called on
same column for consistency
* Supports addition of primary keys
* `m.PriCol("id").SetDataType("INT(10)").SetNullable("true")`
* **NOTE** `setAuto(true)` can be only called on Primary keys
* Supports addition of unique keys
* `m.UniCol("unique_index","column_name").SetDataType("VARCHAR(23)").SetNullable("true")`
* **NOTE** `UniCol` can be called again with the same index name to
add column to the index
* Supports rename of columns
* `m.RenameColumn("from_name","to_name")`
* Allows standard column methods and methods such that, `SetOldDefault` allows
reversibility of renames
* TODO:
* ForeignKey
Signed-off-by: Gnanakeethan Balasubramaniam <gnanakeethan@gmail.com>
2017-07-06 07:44:48 +05:30
astaxie
7ec819deed
fix #2725 big form
2017-07-04 21:16:59 +08:00
astaxie
4cfb3678f8
Merge pull request #2741 from miraclesu/validation
...
validation: support required option for some struct tag valids
2017-07-04 15:49:36 +08:00