Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
channels
Project
Project
Details
Activity
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
backend
channels
Commits
1777c0a3
Commit
1777c0a3
authored
Aug 01, 2019
by
gaoming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
appname
parent
6828bd12
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletion
+20
-1
0004_promotioninfo_app.py
like/migrations/0004_promotioninfo_app.py
+18
-0
models.py
like/models.py
+1
-0
channelsinfo.sql
sqls/deploy/channelsinfo.sql
+1
-1
No files found.
like/migrations/0004_promotioninfo_app.py
0 → 100644
View file @
1777c0a3
# Generated by Django 2.2.1 on 2019-07-31 16:35
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'like'
,
'0003_auto_20190730_1437'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'promotioninfo'
,
name
=
'app'
,
field
=
models
.
CharField
(
default
=
'gengmei'
,
max_length
=
8
,
verbose_name
=
'app名称'
),
),
]
like/models.py
View file @
1777c0a3
...
...
@@ -32,6 +32,7 @@ class PromotionInfo(models.Model):
code
=
models
.
CharField
(
max_length
=
64
,
verbose_name
=
'渠道编码'
)
sub_code
=
models
.
CharField
(
max_length
=
128
,
verbose_name
=
'子渠道编码'
)
platform
=
models
.
CharField
(
max_length
=
8
,
verbose_name
=
'推广平台,IOS or Android'
)
app
=
models
.
CharField
(
max_length
=
8
,
verbose_name
=
"app名称"
,
default
=
"gengmei"
)
appendtime
=
models
.
DateField
(
auto_now_add
=
True
,
verbose_name
=
"创建时间"
)
class
PromotionChannel
(
models
.
Model
):
...
...
sqls/deploy/channelsinfo.sql
View file @
1777c0a3
-- Deploy flipr:channelsinfo to mysql
BEGIN
;
CREATE
TABLE
`promotioninfo`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`name`
varchar
(
128
)
NOT
NULL
,
...
...
@@ -9,6 +8,7 @@ CREATE TABLE `promotioninfo` (
`sub_code`
varchar
(
128
)
NOT
NULL
,
`platform`
varchar
(
8
)
NOT
NULL
,
`appendtime`
date
NOT
NULL
,
`app`
varchar
(
8
)
NOT
NULL
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
3
DEFAULT
CHARSET
=
utf8
...
...
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