Created
September 7, 2017 22:31
-
-
Save ano/c7563827d717168bba7910473e67dfe4 to your computer and use it in GitHub Desktop.
PHPMaker - MySQL: Metadata fields
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
/* | |
* Common meta data fields for Machform | |
*/ | |
ALTER TABLE `table_name` | |
ADD `user_id` int(11) DEFAULT NULL, | |
ADD `user_level_id` int(11) DEFAULT NULL, | |
ADD `user_group_id` int(11) DEFAULT NULL, | |
ADD `ipaddress` varchar(255) COLLATE utf8_bin DEFAULT NULL, | |
ADD `date_published` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, | |
ADD `date_updated` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment