Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 12 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<IfModule mod_rewrite.c>
Options -MultiViews

RewriteEngine On
#RewriteBase /test/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]

</IfModule>

#FallbackResource /index.php
15 changes: 15 additions & 0 deletions BD.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

### Criar Base
CREATE DATABASE `test` /*!40100 DEFAULT CHARACTER SET latin1 */;

### criar tabela de clientes
CREATE TABLE `tb_customers` (
`id_customer` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(150) NOT NULL,
`cpf` int(11) NOT NULL,
`birth_date` date NOT NULL,
`email` varchar(150) NOT NULL,
`dt_register` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`dt_change` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id_customer`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": {
"silex/silex": "~2.0"
}
}
Loading