scripts updated
This commit is contained in:
parent
87b05cf341
commit
850d47d676
9
db_scripts/PostLikeCounter.sql
Normal file
9
db_scripts/PostLikeCounter.sql
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
CREATE TABLE `PostLikeCounter` (
|
||||||
|
`id` int(20) NOT NULL AUTO_INCREMENT,
|
||||||
|
`siteid` varchar(500),
|
||||||
|
`postid` varchar(500),
|
||||||
|
`count` int(20),
|
||||||
|
`datecreated` timestamp DEFAULT current_timestamp() ,
|
||||||
|
`datemodified` timestamp DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
)
|
||||||
9
db_scripts/PostVisitCounter.sql
Normal file
9
db_scripts/PostVisitCounter.sql
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
CREATE TABLE `PostVisitCounter` (
|
||||||
|
`id` int(20) NOT NULL AUTO_INCREMENT,
|
||||||
|
`siteid` varchar(500),
|
||||||
|
`postid` varchar(500),
|
||||||
|
`count` int(20),
|
||||||
|
`datecreated` timestamp DEFAULT current_timestamp() ,
|
||||||
|
`datemodified` timestamp DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
)
|
||||||
@ -10,9 +10,12 @@ SHOW GRANTS FOR blog_admin@'%';
|
|||||||
|
|
||||||
FLUSH PRIVILEGES
|
FLUSH PRIVILEGES
|
||||||
|
|
||||||
|
|
||||||
-- Create Counter Table
|
-- Create Counter Table
|
||||||
|
|
||||||
-- DROP TABLE PostVisitCounter
|
-- DROP TABLE PostVisitCounter
|
||||||
|
|
||||||
-- create table PostVisitCounter (id INT(20) NOT NULL AUTO_INCREMENT PRIMARY KEY, siteid nvarchar(500), postid nvarchar(500), count INT(20), datecreated TIMESTAMP, datemodified TIMESTAMP);
|
-- DROP TABLE PostLikeCounter
|
||||||
|
|
||||||
|
-- create table PostVisitCounter (Id INT(20) NOT NULL AUTO_INCREMENT PRIMARY KEY, SiteId nvarchar(500), PostId nvarchar(500), Count INT(20), DateCreated TIMESTAMP, DateModified TIMESTAMP);
|
||||||
|
|
||||||
|
-- create table PostLikeCounter (Id INT(20) NOT NULL AUTO_INCREMENT PRIMARY KEY, SiteId nvarchar(500), PostId nvarchar(500), Count INT(20), DateCreated TIMESTAMP, DateModified TIMESTAMP);
|
||||||
Loading…
Reference in New Issue
Block a user