Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Mike Rockett
committed
Jan 17, 2017
1 parent
eac11da
commit 3ad4f0b
Showing
7 changed files
with
29 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
CREATE TABLE IF NOT EXISTS <table-name> ( | ||
id INT UNSIGNED NOT NULL AUTO_INCREMENT, | ||
source VARCHAR(512) NOT NULL, | ||
destination VARCHAR(512) NOT NULL, | ||
hits INT UNSIGNED DEFAULT 0, | ||
user_created INT UNSIGNED DEFAULT 0, | ||
user_updated INT UNSIGNED DEFAULT 0, | ||
date_start TIMESTAMP NULL, | ||
date_end TIMESTAMP NULL, | ||
created_at TIMESTAMP, | ||
updated_at TIMESTAMP, | ||
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT, | ||
`source` VARCHAR(512) NOT NULL, | ||
`destination` VARCHAR(512) NOT NULL, | ||
`hits` INT UNSIGNED DEFAULT 0, | ||
`user_created` INT UNSIGNED DEFAULT 0, | ||
`user_updated` INT UNSIGNED DEFAULT 0, | ||
`date_start` TIMESTAMP NULL, | ||
`date_end` TIMESTAMP NULL, | ||
`created_at` TIMESTAMP, | ||
`updated_at` TIMESTAMP, | ||
PRIMARY KEY(id) | ||
) ENGINE = MyISAM DEFAULT CHARSET=utf8; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
CREATE TABLE IF NOT EXISTS <table-name>_mc ( | ||
id INT UNSIGNED NOT NULL AUTO_INCREMENT, | ||
collection_name VARCHAR(255) NOT NULL, | ||
collection_mappings LONGTEXT NOT NULL, | ||
user_created INT UNSIGNED DEFAULT 0, | ||
user_updated INT UNSIGNED DEFAULT 0, | ||
updated_at TIMESTAMP, | ||
created_at TIMESTAMP, | ||
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT, | ||
`collection_name` VARCHAR(255) NOT NULL, | ||
`collection_mappings` LONGTEXT NOT NULL, | ||
`user_created` INT UNSIGNED DEFAULT 0, | ||
`user_updated` INT UNSIGNED DEFAULT 0, | ||
`updated_at` TIMESTAMP, | ||
`created_at` TIMESTAMP, | ||
PRIMARY KEY (id), | ||
UNIQUE KEY(collection_name) | ||
) ENGINE = MyISAM DEFAULT CHARSET=utf8; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
ALTER TABLE <table-name> MODIFY date_start TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00'; | ||
ALTER TABLE <table-name> MODIFY date_end TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00'; | ||
ALTER TABLE <table-name> MODIFY `date_start` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00'; | ||
ALTER TABLE <table-name> MODIFY `date_end` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
ALTER TABLE <table-name> ADD COLUMN last_hit TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00'; | ||
ALTER TABLE <table-name> ADD COLUMN `last_hit` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
CREATE TABLE <table-name>_nf ( | ||
id INT UNSIGNED NOT NULL AUTO_INCREMENT, | ||
request_uri VARCHAR(255) NOT NULL, | ||
referrer VARCHAR(255) DEFAULT '', | ||
user_agent VARCHAR(255) DEFAULT '', | ||
created_at TIMESTAMP, | ||
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT, | ||
`request_uri` VARCHAR(255) NOT NULL, | ||
`referrer` VARCHAR(255) DEFAULT '', | ||
`user_agent` VARCHAR(255) DEFAULT '', | ||
`created_at` TIMESTAMP, | ||
PRIMARY KEY (id) | ||
) ENGINE = MyISAM DEFAULT CHARSET=utf8; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters