aboutsummaryrefslogtreecommitdiffstats
path: root/install/schema_mysql.sql
diff options
context:
space:
mode:
authorredmatrix <mike@macgirvin.com>2016-09-26 18:17:38 -0700
committerredmatrix <mike@macgirvin.com>2016-09-26 18:17:38 -0700
commit4663278f52fd11c1014d13151af2bc6ef1392c7d (patch)
tree5ea36ed7db723a1d0abfd99c5e7d21f9e72cf12a /install/schema_mysql.sql
parent5716556766eb4e329f0c6c1bc899a7621cbcd5a5 (diff)
parentcacdac16aa104eb1308f69f24fef31f682934fca (diff)
downloadvolse-hubzilla-4663278f52fd11c1014d13151af2bc6ef1392c7d.tar.gz
volse-hubzilla-4663278f52fd11c1014d13151af2bc6ef1392c7d.tar.bz2
volse-hubzilla-4663278f52fd11c1014d13151af2bc6ef1392c7d.zip
Merge branch 'nulldate' into dev
Diffstat (limited to 'install/schema_mysql.sql')
-rw-r--r--install/schema_mysql.sql128
1 files changed, 64 insertions, 64 deletions
diff --git a/install/schema_mysql.sql b/install/schema_mysql.sql
index 9a4f58880..d72684a90 100644
--- a/install/schema_mysql.sql
+++ b/install/schema_mysql.sql
@@ -21,10 +21,10 @@ CREATE TABLE IF NOT EXISTS `abook` (
`abook_my_perms` int(11) NOT NULL DEFAULT '0',
`abook_their_perms` int(11) NOT NULL DEFAULT '0',
`abook_closeness` tinyint(3) unsigned NOT NULL DEFAULT '99',
- `abook_created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `abook_updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `abook_connected` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `abook_dob` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `abook_created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
+ `abook_updated` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
+ `abook_connected` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
+ `abook_dob` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
`abook_flags` int(11) NOT NULL DEFAULT '0',
`abook_blocked` tinyint(4) NOT NULL DEFAULT '0',
`abook_ignored` tinyint(4) NOT NULL DEFAULT '0',
@@ -70,16 +70,16 @@ CREATE TABLE IF NOT EXISTS `account` (
`account_email` char(255) NOT NULL DEFAULT '',
`account_external` char(255) NOT NULL DEFAULT '',
`account_language` char(16) NOT NULL DEFAULT 'en',
- `account_created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `account_lastlog` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `account_created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
+ `account_lastlog` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
`account_flags` int(10) unsigned NOT NULL DEFAULT '0',
`account_roles` int(10) unsigned NOT NULL DEFAULT '0',
`account_reset` char(255) NOT NULL DEFAULT '',
- `account_expires` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `account_expire_notified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `account_expires` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
+ `account_expire_notified` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
`account_service_class` char(32) NOT NULL DEFAULT '',
`account_level` int(10) unsigned NOT NULL DEFAULT '0',
- `account_password_changed` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `account_password_changed` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
PRIMARY KEY (`account_id`),
KEY `account_email` (`account_email`),
KEY `account_service_class` (`account_service_class`),
@@ -125,8 +125,8 @@ CREATE TABLE IF NOT EXISTS `app` (
`app_requires` char(255) NOT NULL DEFAULT '',
`app_deleted` int(11) NOT NULL DEFAULT '0',
`app_system` int(11) NOT NULL DEFAULT '0',
- `app_created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `app_edited` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `app_created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
+ `app_edited` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
PRIMARY KEY (`id`),
KEY `app_id` (`app_id`),
KEY `app_name` (`app_name`),
@@ -148,7 +148,7 @@ CREATE TABLE IF NOT EXISTS `atoken` (
`atoken_uid` int(11) NOT NULL DEFAULT 0,
`atoken_name` char(255) NOT NULL DEFAULT '',
`atoken_token` char(255) NOT NULL DEFAULT '',
- `atoken_expires` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `atoken_expires` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
PRIMARY KEY (`atoken_id`),
KEY `atoken_aid` (`atoken_aid`),
KEY `atoken_uid` (`atoken_uid`),
@@ -176,8 +176,8 @@ CREATE TABLE IF NOT EXISTS `attach` (
`os_path` mediumtext NOT NULL,
`display_path` mediumtext NOT NULL,
`content` longblob NOT NULL,
- `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `edited` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
+ `edited` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
`allow_cid` mediumtext NOT NULL,
`allow_gid` mediumtext NOT NULL,
`deny_cid` mediumtext NOT NULL,
@@ -212,7 +212,7 @@ CREATE TABLE IF NOT EXISTS `auth_codes` (
CREATE TABLE IF NOT EXISTS `cache` (
`k` char(255) NOT NULL DEFAULT '',
`v` text NOT NULL,
- `updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `updated` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
PRIMARY KEY (`k`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
@@ -253,9 +253,9 @@ CREATE TABLE IF NOT EXISTS `channel` (
`channel_prvkey` text NOT NULL,
`channel_notifyflags` int(10) unsigned NOT NULL DEFAULT '65535',
`channel_pageflags` int(10) unsigned NOT NULL DEFAULT '0',
- `channel_dirdate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `channel_lastpost` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `channel_deleted` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `channel_dirdate` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
+ `channel_lastpost` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
+ `channel_deleted` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
`channel_max_anon_mail` int(10) unsigned NOT NULL DEFAULT '10',
`channel_max_friend_req` int(10) unsigned NOT NULL DEFAULT '10',
`channel_expire_days` int(11) NOT NULL DEFAULT '0',
@@ -333,7 +333,7 @@ CREATE TABLE IF NOT EXISTS `chat` (
`chat_room` int(10) unsigned NOT NULL DEFAULT '0',
`chat_xchan` char(255) NOT NULL DEFAULT '',
`chat_text` mediumtext NOT NULL,
- `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
PRIMARY KEY (`chat_id`),
KEY `chat_room` (`chat_room`),
KEY `chat_xchan` (`chat_xchan`),
@@ -344,7 +344,7 @@ CREATE TABLE IF NOT EXISTS `chatpresence` (
`cp_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`cp_room` int(10) unsigned NOT NULL DEFAULT '0',
`cp_xchan` char(255) NOT NULL DEFAULT '',
- `cp_last` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `cp_last` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
`cp_status` char(255) NOT NULL DEFAULT '',
`cp_client` char(128) NOT NULL DEFAULT '',
PRIMARY KEY (`cp_id`),
@@ -359,8 +359,8 @@ CREATE TABLE IF NOT EXISTS `chatroom` (
`cr_aid` int(10) unsigned NOT NULL DEFAULT '0',
`cr_uid` int(10) unsigned NOT NULL DEFAULT '0',
`cr_name` char(255) NOT NULL DEFAULT '',
- `cr_created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `cr_edited` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `cr_created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
+ `cr_edited` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
`cr_expire` int(10) unsigned NOT NULL DEFAULT '0',
`allow_cid` mediumtext NOT NULL,
`allow_gid` mediumtext NOT NULL,
@@ -400,8 +400,8 @@ CREATE TABLE IF NOT EXISTS `conv` (
`recips` mediumtext NOT NULL,
`uid` int(11) NOT NULL DEFAULT '0',
`creator` char(255) NOT NULL DEFAULT '',
- `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
+ `updated` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
`subject` mediumtext NOT NULL,
PRIMARY KEY (`id`),
KEY `created` (`created`),
@@ -415,7 +415,7 @@ CREATE TABLE IF NOT EXISTS `dreport` (
`dreport_site` char(255) NOT NULL DEFAULT '',
`dreport_recip` char(255) NOT NULL DEFAULT '',
`dreport_result` char(255) NOT NULL DEFAULT '',
- `dreport_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `dreport_time` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
`dreport_xchan` char(255) NOT NULL DEFAULT '',
`dreport_queue` char(255) NOT NULL DEFAULT '',
PRIMARY KEY (`dreport_id`),
@@ -434,10 +434,10 @@ CREATE TABLE IF NOT EXISTS `event` (
`cal_id` int(11) unsigned NOT NULL DEFAULT '0',
`event_xchan` char(255) NOT NULL DEFAULT '',
`event_hash` char(255) NOT NULL DEFAULT '',
- `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `edited` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `dtstart` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `dtend` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
+ `edited` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
+ `dtstart` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
+ `dtend` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
`summary` text NOT NULL,
`description` text NOT NULL,
`location` text NOT NULL,
@@ -450,7 +450,7 @@ CREATE TABLE IF NOT EXISTS `event` (
`deny_cid` mediumtext NOT NULL,
`deny_gid` mediumtext NOT NULL,
`event_status` char(255) NOT NULL DEFAULT '',
- `event_status_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `event_status_date` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
`event_percent` smallint(6) NOT NULL DEFAULT '0',
`event_repeat` text NOT NULL,
`event_sequence` smallint(6) NOT NULL DEFAULT '0',
@@ -526,8 +526,8 @@ CREATE TABLE IF NOT EXISTS `hubloc` (
`hubloc_callback` char(255) NOT NULL DEFAULT '',
`hubloc_connect` char(255) NOT NULL DEFAULT '',
`hubloc_sitekey` text NOT NULL,
- `hubloc_updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `hubloc_connected` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `hubloc_updated` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
+ `hubloc_connected` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
`hubloc_primary` tinyint(1) NOT NULL DEFAULT '0',
`hubloc_orphancheck` tinyint(1) NOT NULL DEFAULT '0',
`hubloc_error` tinyint(1) NOT NULL DEFAULT '0',
@@ -566,8 +566,8 @@ CREATE TABLE IF NOT EXISTS `iconfig` (
CREATE TABLE IF NOT EXISTS `issue` (
`issue_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `issue_created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `issue_updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `issue_created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
+ `issue_updated` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
`issue_assigned` char(255) NOT NULL DEFAULT '',
`issue_priority` int(11) NOT NULL DEFAULT '0',
`issue_status` int(11) NOT NULL DEFAULT '0',
@@ -589,13 +589,13 @@ CREATE TABLE IF NOT EXISTS `item` (
`parent` int(10) unsigned NOT NULL DEFAULT '0',
`parent_mid` char(255) CHARACTER SET ascii NOT NULL DEFAULT '',
`thr_parent` char(255) NOT NULL DEFAULT '',
- `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `edited` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `expires` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `commented` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `received` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `changed` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `comments_closed` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
+ `edited` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
+ `expires` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
+ `commented` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
+ `received` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
+ `changed` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
+ `comments_closed` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
`owner_xchan` char(255) NOT NULL DEFAULT '',
`author_xchan` char(255) NOT NULL DEFAULT '',
`source_xchan` char(255) NOT NULL DEFAULT '',
@@ -771,8 +771,8 @@ CREATE TABLE IF NOT EXISTS `mail` (
`mail_seen` tinyint(4) NOT NULL DEFAULT '0',
`mail_recalled` tinyint(4) NOT NULL DEFAULT '0',
`mail_obscured` smallint(6) NOT NULL DEFAULT '0',
- `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `expires` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
+ `expires` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
PRIMARY KEY (`id`),
KEY `created` (`created`),
KEY `mail_flags` (`mail_flags`),
@@ -799,8 +799,8 @@ CREATE TABLE IF NOT EXISTS `menu` (
`menu_name` char(255) NOT NULL DEFAULT '',
`menu_desc` char(255) NOT NULL DEFAULT '',
`menu_flags` int(11) NOT NULL DEFAULT '0',
- `menu_created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `menu_edited` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `menu_created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
+ `menu_edited` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
PRIMARY KEY (`menu_id`),
KEY `menu_channel_id` (`menu_channel_id`),
KEY `menu_name` (`menu_name`),
@@ -833,7 +833,7 @@ CREATE TABLE IF NOT EXISTS `notify` (
`xname` char(255) NOT NULL DEFAULT '',
`url` char(255) NOT NULL DEFAULT '',
`photo` char(255) NOT NULL DEFAULT '',
- `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
`msg` mediumtext NOT NULL,
`aid` int(11) NOT NULL DEFAULT '0',
`uid` int(11) NOT NULL DEFAULT '0',
@@ -865,8 +865,8 @@ CREATE TABLE IF NOT EXISTS `obj` (
`obj_term` char(255) NOT NULL DEFAULT '',
`obj_url` char(255) NOT NULL DEFAULT '',
`obj_imgurl` char(255) NOT NULL DEFAULT '',
- `obj_created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `obj_edited` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `obj_created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
+ `obj_edited` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
`obj_quantity` int(11) NOT NULL DEFAULT '0',
`allow_cid` mediumtext NOT NULL,
`allow_gid` mediumtext NOT NULL,
@@ -894,8 +894,8 @@ CREATE TABLE IF NOT EXISTS `outq` (
`outq_posturl` char(255) NOT NULL DEFAULT '',
`outq_async` tinyint(1) NOT NULL DEFAULT '0',
`outq_delivered` tinyint(1) NOT NULL DEFAULT '0',
- `outq_created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `outq_updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `outq_created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
+ `outq_updated` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
`outq_notify` mediumtext NOT NULL,
`outq_msg` mediumtext NOT NULL,
`outq_priority` smallint(6) NOT NULL DEFAULT '0',
@@ -927,8 +927,8 @@ CREATE TABLE IF NOT EXISTS `photo` (
`uid` int(10) unsigned NOT NULL DEFAULT '0',
`xchan` char(255) NOT NULL DEFAULT '',
`resource_id` char(255) NOT NULL DEFAULT '',
- `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `edited` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
+ `edited` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
`title` char(255) NOT NULL DEFAULT '',
`description` text NOT NULL,
`album` char(255) NOT NULL DEFAULT '',
@@ -1034,7 +1034,7 @@ CREATE TABLE IF NOT EXISTS `profile` (
`gender` char(32) NOT NULL DEFAULT '',
`marital` char(255) NOT NULL DEFAULT '',
`partner` text NOT NULL,
- `howlong` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `howlong` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
`sexual` char(255) NOT NULL DEFAULT '',
`politic` char(255) NOT NULL DEFAULT '',
`religion` char(255) NOT NULL DEFAULT '',
@@ -1092,7 +1092,7 @@ CREATE TABLE IF NOT EXISTS `profile_check` (
CREATE TABLE IF NOT EXISTS `register` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`hash` char(255) NOT NULL DEFAULT '',
- `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
`uid` int(10) unsigned NOT NULL DEFAULT '0',
`password` char(255) NOT NULL DEFAULT '',
`lang` char(16) NOT NULL DEFAULT '',
@@ -1139,9 +1139,9 @@ CREATE TABLE IF NOT EXISTS `site` (
`site_url` char(255) NOT NULL,
`site_access` int(11) NOT NULL DEFAULT '0',
`site_flags` int(11) NOT NULL DEFAULT '0',
- `site_update` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `site_pull` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `site_sync` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `site_update` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
+ `site_pull` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
+ `site_sync` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
`site_directory` char(255) NOT NULL DEFAULT '',
`site_register` int(11) NOT NULL DEFAULT '0',
`site_sellpage` char(255) NOT NULL DEFAULT '',
@@ -1230,8 +1230,8 @@ CREATE TABLE IF NOT EXISTS `updates` (
`ud_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`ud_hash` char(128) NOT NULL DEFAULT '',
`ud_guid` char(255) NOT NULL DEFAULT '',
- `ud_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `ud_last` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `ud_date` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
+ `ud_last` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
`ud_flags` int(11) NOT NULL DEFAULT '0',
`ud_addr` char(255) NOT NULL DEFAULT '',
PRIMARY KEY (`ud_id`),
@@ -1249,7 +1249,7 @@ CREATE TABLE IF NOT EXISTS `verify` (
`vtype` char(32) NOT NULL DEFAULT '',
`token` char(255) NOT NULL DEFAULT '',
`meta` char(255) NOT NULL DEFAULT '',
- `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
PRIMARY KEY (`id`),
KEY `channel` (`channel`),
KEY `vtype` (`vtype`),
@@ -1288,8 +1288,8 @@ CREATE TABLE IF NOT EXISTS `xchan` (
`xchan_network` char(255) NOT NULL DEFAULT '',
`xchan_instance_url` char(255) NOT NULL DEFAULT '',
`xchan_flags` int(10) unsigned NOT NULL DEFAULT '0',
- `xchan_photo_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `xchan_name_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `xchan_photo_date` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
+ `xchan_name_date` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
`xchan_hidden` tinyint(1) NOT NULL DEFAULT '0',
`xchan_orphan` tinyint(1) NOT NULL DEFAULT '0',
`xchan_censored` tinyint(1) NOT NULL DEFAULT '0',
@@ -1321,7 +1321,7 @@ CREATE TABLE IF NOT EXISTS `xchat` (
`xchat_url` char(255) NOT NULL DEFAULT '',
`xchat_desc` char(255) NOT NULL DEFAULT '',
`xchat_xchan` char(255) NOT NULL DEFAULT '',
- `xchat_edited` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `xchat_edited` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
PRIMARY KEY (`xchat_id`),
KEY `xchat_url` (`xchat_url`),
KEY `xchat_desc` (`xchat_desc`),
@@ -1356,7 +1356,7 @@ CREATE TABLE IF NOT EXISTS `xlink` (
`xlink_link` char(255) NOT NULL DEFAULT '',
`xlink_rating` int(11) NOT NULL DEFAULT '0',
`xlink_rating_text` text NOT NULL,
- `xlink_updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+ `xlink_updated` datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
`xlink_static` tinyint(1) NOT NULL DEFAULT '0',
`xlink_sig` text NOT NULL,
PRIMARY KEY (`xlink_id`),