@@ -4,7 +4,7 @@ CREATE TABLE `apps` (
44 ` name` varchar (50 ) NOT NULL DEFAULT ' ' ,
55 ` uid` bigint (20 ) unsigned NOT NULL DEFAULT ' 0' ,
66 ` updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ,
7- ` created_at` timestamp NOT NULL DEFAULT ' 1970-01-01 00:00:01 ' ,
7+ ` created_at` timestamp NULL DEFAULT NULL ,
88 ` deleted_at` timestamp NULL DEFAULT NULL ,
99 PRIMARY KEY (` id` ),
1010 KEY ` idx_name` (` name` (12 ))
@@ -17,7 +17,7 @@ CREATE TABLE `collaborators` (
1717 ` uid` bigint (20 ) unsigned NOT NULL DEFAULT ' 0' ,
1818 ` roles` varchar (20 ) NOT NULL DEFAULT ' ' ,
1919 ` updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ,
20- ` created_at` timestamp NOT NULL DEFAULT ' 1970-01-01 00:00:01 ' ,
20+ ` created_at` timestamp NULL DEFAULT NULL ,
2121 ` deleted_at` timestamp NULL DEFAULT NULL ,
2222 PRIMARY KEY (` id` ),
2323 KEY ` idx_appid` (` appid` ),
@@ -35,7 +35,7 @@ CREATE TABLE `deployments` (
3535 ` last_deployment_version_id` int (10 ) unsigned NOT NULL DEFAULT ' 0' ,
3636 ` label_id` int (11 ) unsigned NOT NULL DEFAULT ' 0' ,
3737 ` updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ,
38- ` created_at` timestamp NOT NULL DEFAULT ' 1970-01-01 00:00:01 ' ,
38+ ` created_at` timestamp NULL DEFAULT NULL ,
3939 ` deleted_at` timestamp NULL DEFAULT NULL ,
4040 PRIMARY KEY (` id` ),
4141 KEY ` idx_appid` (` appid` ),
@@ -61,7 +61,7 @@ CREATE TABLE `deployments_versions` (
6161 ` app_version` varchar (14 ) NOT NULL DEFAULT ' ' ,
6262 ` current_package_id` int (10 ) unsigned NOT NULL DEFAULT ' 0' ,
6363 ` updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ,
64- ` created_at` timestamp NOT NULL DEFAULT ' 1970-01-01 00:00:01 ' ,
64+ ` created_at` timestamp NULL DEFAULT NULL ,
6565 PRIMARY KEY (` id` ),
6666 UNIQUE KEY ` idx_did_appversion` (` deployment_id` ,` app_version` )
6767) ENGINE= InnoDB DEFAULT CHARSET= utf8;
@@ -81,9 +81,8 @@ CREATE TABLE `packages` (
8181 ` original_label` varchar (20 ) NOT NULL DEFAULT ' ' ,
8282 ` original_deployment` varchar (20 ) NOT NULL DEFAULT ' ' ,
8383 ` updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ,
84- ` created_at` timestamp NOT NULL DEFAULT ' 1970-01-01 00:00:01 ' ,
84+ ` created_at` timestamp NULL DEFAULT NULL ,
8585 ` released_by` bigint (20 ) unsigned NOT NULL ,
86- ` is_mandatory` tinyint (3 ) unsigned NOT NULL DEFAULT ' 0' ,
8786 PRIMARY KEY (` id` ),
8887 KEY ` idx_deploymentid_label` (` deployment_id` ,` label` (8 )),
8988 KEY ` idx_versions_id` (` deployment_version_id` )
@@ -97,7 +96,7 @@ CREATE TABLE `packages_diff` (
9796 ` diff_blob_url` varchar (255 ) NOT NULL DEFAULT ' ' ,
9897 ` diff_size` int (11 ) unsigned NOT NULL DEFAULT ' 0' ,
9998 ` updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ,
100- ` created_at` timestamp NOT NULL DEFAULT ' 1970-01-01 00:00:01 ' ,
99+ ` created_at` timestamp NULL DEFAULT NULL ,
101100 PRIMARY KEY (` id` ),
102101 KEY ` idx_packageid_hash` (` package_id` ,` diff_against_package_hash` (40 ))
103102) ENGINE= InnoDB DEFAULT CHARSET= utf8;
@@ -111,7 +110,7 @@ CREATE TABLE `packages_metrics` (
111110 ` failed` int (10 ) unsigned NOT NULL DEFAULT ' 0' ,
112111 ` installed` int (10 ) unsigned NOT NULL DEFAULT ' 0' ,
113112 ` updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ,
114- ` created_at` timestamp NOT NULL DEFAULT ' 1970-01-01 00:00:01 ' ,
113+ ` created_at` timestamp NULL DEFAULT NULL ,
115114 PRIMARY KEY (` id` ),
116115 UNIQUE KEY ` udx_packageid` (` package_id` )
117116) ENGINE= InnoDB DEFAULT CHARSET= utf8;
@@ -125,7 +124,7 @@ CREATE TABLE `user_tokens` (
125124 ` created_by` varchar (64 ) NOT NULL DEFAULT ' ' ,
126125 ` description` varchar (500 ) NOT NULL DEFAULT ' ' ,
127126 ` is_session` tinyint (3 ) unsigned NOT NULL DEFAULT ' 0' ,
128- ` expires_at` timestamp NOT NULL DEFAULT ' 1970-01-01 00:00:01 ' ,
127+ ` expires_at` timestamp NULL DEFAULT NULL ,
129128 ` created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ,
130129 ` deleted_at` timestamp NULL DEFAULT NULL ,
131130 PRIMARY KEY (` id` ),
@@ -142,7 +141,7 @@ CREATE TABLE `users` (
142141 ` identical` varchar (10 ) NOT NULL DEFAULT ' ' ,
143142 ` ack_code` varchar (10 ) NOT NULL DEFAULT ' ' ,
144143 ` updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ,
145- ` created_at` timestamp NOT NULL DEFAULT ' 1970-01-01 00:00:01 ' ,
144+ ` created_at` timestamp NULL DEFAULT NULL ,
146145 PRIMARY KEY (` id` ),
147146 UNIQUE KEY ` udx_identical` (` identical` ),
148147 KEY ` udx_username` (` username` ),
0 commit comments