scripts updated

This commit is contained in:
Bangara Raju Kottedi 2023-08-30 04:02:12 +05:30
parent 87b05cf341
commit 850d47d676
3 changed files with 23 additions and 2 deletions

View 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`)
)

View 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`)
)

View File

@ -10,9 +10,12 @@ SHOW GRANTS FOR blog_admin@'%';
FLUSH PRIVILEGES
-- Create Counter Table
-- 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);