In the following code an error
!h' float specifier changed to !ht`
I think because my tables span multiple pages. How can I get them to display properly one after the other?
\documentclass{article}
\begin{document}
\section{Database Design}
\begin{table}[!h]
\centering
\begin{tabular}{ | l | l |}
\hline
Field & Type \\ \hline
id & Primary key \\ \hline
firstName & String \\ \hline
lastName & String \\ \hline
email & String \\ \hline
password & String \\ \hline
\end{tabular}
\caption{User2}
\end{table}
\begin{table}[!h]
\centering
\begin{tabular}{ | l | l |}
\hline
Field & Type \\ \hline
id & Primary key \\ \hline
firstName & String \\ \hline
lastName & String \\ \hline
email & String \\ \hline
password & String \\ \hline
\end{tabular}
\caption{User}
\end{table}
\begin{table}[!h]
\centering
\begin{tabular}{ | l | l |}
\hline
Field & Type \\ \hline
id & Primary key \\ \hline
title & String \\ \hline
postedAt & Date\\ \hline
email & String \\ \hline
author & Foreign key from 'User' table\\ \hline
tags & Foreign key from 'Tag' table\\ \hline
\end{tabular}
\caption{Post}
\end{table}
\begin{table}[!h]
\centering
\begin{tabular}{ | l | l |}
\hline
Field & Type \\ \hline
id & Primary key \\ \hline
author& String \\ \hline
content& String \\ \hline
postedAt & Date\\ \hline
post& Foreign key from 'Post' table\\ \hline
\end{tabular}
\caption{Comment}
\end{table}
\begin{table}[!h]
\centering
\begin{tabular}{ | l | l |}
\hline
Field & Type \\ \hline
id & Primary key \\ \hline
name & String
\end{tabular}
\caption{Tag}
\end{table}
\begin{table}[!h]
\centering
\begin{tabular}{ | l | l |}
\hline
id & Primary key \\ \hline
Field & Type \\ \hline
post& Foreign key from 'PostTag' table\\ \hline
tag& Foreign key from 'Tag' table\\ \hline
\end{tabular}
\caption{PostTag}
\end{table}
\end{document}