From 6c965bdcf3c25e285664c28d45981626dc3d0924 Mon Sep 17 00:00:00 2001 From: pioder Date: Sun, 14 Jun 2009 20:20:55 +0000 Subject: [PATCH] Dodano plik z zapytaniami SQL git-svn-id: https://svn.pioder.pl/sg-svn@2 3ed2631f-fe0d-47e0-9194-a46bc0f18ee8 --- robocze/zapytania.sql | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 robocze/zapytania.sql diff --git a/robocze/zapytania.sql b/robocze/zapytania.sql new file mode 100644 index 0000000..a300a6d --- /dev/null +++ b/robocze/zapytania.sql @@ -0,0 +1,22 @@ +# zapytania do Bazy +# Galeria Suczawy 2009 +# 2009 (c) PioDer +# $Id$ + +CREATE TABLE `photos` ( +`id` SMALLINT( 4 ) NOT NULL , +`thumb_name` VARCHAR( 20 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , +`photo_name` VARCHAR( 20 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , +`author` VARCHAR( 30 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , +`description` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , +PRIMARY KEY ( `id` ) +) ENGINE = MYISAM CHARACTER SET utf8 COLLATE utf8_general_ci; + +CREATE TABLE `admins` ( +`id` SMALLINT( 1 ) NOT NULL , +`nick` VARCHAR( 20 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , +`password` VARCHAR( 200 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , +`email` VARCHAR( 20 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , +`IP` VARCHAR( 14 ) NOT NULL , +PRIMARY KEY ( `id` ) +) ENGINE = MYISAM CHARACTER SET utf8 COLLATE utf8_general_ci; \ No newline at end of file