Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zuiketang
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
zuiketang
Commits
5ca6860e
Commit
5ca6860e
authored
Oct 24, 2016
by
xiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加src_stand 以及src_free
parent
9b4235e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
Courseware.php
src/common/models/Courseware.php
+5
-0
m160927_121625_courseware_init.php
src/console/migrations/m160927_121625_courseware_init.php
+2
-0
No files found.
src/common/models/Courseware.php
View file @
5ca6860e
...
@@ -14,6 +14,8 @@ use yii\db\ActiveRecord;
...
@@ -14,6 +14,8 @@ use yii\db\ActiveRecord;
* @property integer $course_id
* @property integer $course_id
* @property integer $type
* @property integer $type
* @property string $name
* @property string $name
* @property string $src_stand
* @property string $src_free
* @property integer $status
* @property integer $status
* @property string $size
* @property string $size
* @property int $time
* @property int $time
...
@@ -52,6 +54,7 @@ class Courseware extends ActiveRecord
...
@@ -52,6 +54,7 @@ class Courseware extends ActiveRecord
[[
'user_id'
,
'course_id'
,
'type'
,
'status'
,
'size'
,
'time'
],
'integer'
],
[[
'user_id'
,
'course_id'
,
'type'
,
'status'
,
'size'
,
'time'
],
'integer'
],
[[
'name'
],
'string'
,
'max'
=>
128
],
[[
'name'
],
'string'
,
'max'
=>
128
],
[[
'format'
],
'string'
,
'max'
=>
16
],
[[
'format'
],
'string'
,
'max'
=>
16
],
[[
'src_stand'
,
'src_free'
],
'default'
,
'value'
=>
''
],
[[
'comment_count'
,
'favorite_count'
,
'support_count'
,
'play_count'
],
'default'
,
'value'
=>
0
],
[[
'comment_count'
,
'favorite_count'
,
'support_count'
,
'play_count'
],
'default'
,
'value'
=>
0
],
];
];
...
@@ -68,6 +71,8 @@ class Courseware extends ActiveRecord
...
@@ -68,6 +71,8 @@ class Courseware extends ActiveRecord
'course_id'
=>
'Course ID'
,
'course_id'
=>
'Course ID'
,
'type'
=>
'课件类型 默认0'
,
'type'
=>
'课件类型 默认0'
,
'name'
=>
'Name'
,
'name'
=>
'Name'
,
'src_stand'
=>
'Src Stand'
,
'src_free'
=>
'Src Free'
,
'status'
=>
'0 未审核 1 审核通过 2 审核不通过 3 锁定 '
,
'status'
=>
'0 未审核 1 审核通过 2 审核不通过 3 锁定 '
,
'size'
=>
'文件大小 kb'
,
'size'
=>
'文件大小 kb'
,
'time'
=>
'视频时间 秒'
,
'time'
=>
'视频时间 秒'
,
...
...
src/console/migrations/m160927_121625_courseware_init.php
View file @
5ca6860e
...
@@ -20,6 +20,8 @@ class m160927_121625_courseware_init extends Migration
...
@@ -20,6 +20,8 @@ class m160927_121625_courseware_init extends Migration
'course_id'
=>
$this
->
integer
()
->
notNull
()
->
unsigned
(),
'course_id'
=>
$this
->
integer
()
->
notNull
()
->
unsigned
(),
'type'
=>
$this
->
smallInteger
()
->
notNull
()
->
defaultValue
(
0
)
->
unsigned
()
->
comment
(
'课件类型 默认0'
),
'type'
=>
$this
->
smallInteger
()
->
notNull
()
->
defaultValue
(
0
)
->
unsigned
()
->
comment
(
'课件类型 默认0'
),
'name'
=>
$this
->
string
(
128
)
->
notNull
(),
'name'
=>
$this
->
string
(
128
)
->
notNull
(),
'src_stand'
=>
$this
->
string
(
128
)
->
notNull
(),
'src_free'
=>
$this
->
string
(
128
)
->
notNull
(),
'status'
=>
$this
->
smallInteger
()
->
notNull
()
->
defaultValue
(
0
)
->
comment
(
'0 未审核, 1 审核通过, 2 审核不通过, 3 锁定'
),
'status'
=>
$this
->
smallInteger
()
->
notNull
()
->
defaultValue
(
0
)
->
comment
(
'0 未审核, 1 审核通过, 2 审核不通过, 3 锁定'
),
'size'
=>
$this
->
integer
(
10
)
->
notNull
()
->
unsigned
()
->
comment
(
'文件大小/bytes'
),
'size'
=>
$this
->
integer
(
10
)
->
notNull
()
->
unsigned
()
->
comment
(
'文件大小/bytes'
),
'time'
=>
$this
->
smallInteger
(
8
)
->
unsigned
()
->
notNull
()
->
comment
(
'视频时间/秒'
),
'time'
=>
$this
->
smallInteger
(
8
)
->
unsigned
()
->
notNull
()
->
comment
(
'视频时间/秒'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment