Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
tiredbug committed Feb 12, 2019
1 parent 8b94a87 commit 232f802
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,21 @@ Aplikasi Pasien dan Antrian Mandiri
Update Database
====================

<code>
~~~~sql
ALTER TABLE `pengaduan`
CHANGE `date_time` `date_time` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP AFTER `id`;
</code>

<code>
CREATE TABLE `pengaduan_detail` (
`id` int(11) NOT NULL,
`pengaduan_id` int(11) NOT NULL,
`date_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`username` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`message` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
</code>

<code>
ALTER TABLE `pengaduan_detail`
ADD PRIMARY KEY (`id`);
</code>

<code>
ALTER TABLE `pengaduan_detail`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
</code>
~~~~

0 comments on commit 232f802

Please sign in to comment.