[Catalyst-commits] r13246 - in trunk/examples/Tutorial: MyApp_Chapter4/MyApp MyApp_Chapter5/MyApp MyApp_Chapter6/MyApp MyApp_Chapter7/MyApp MyApp_Chapter8/MyApp MyApp_Chapter9_FormHandler/MyApp

caelum at dev.catalyst.perl.org caelum at dev.catalyst.perl.org
Thu May 13 15:48:42 GMT 2010


Author: caelum
Date: 2010-05-13 16:48:41 +0100 (Thu, 13 May 2010)
New Revision: 13246

Added:
   trunk/examples/Tutorial/MyApp_Chapter4/MyApp/myapp03.sql
   trunk/examples/Tutorial/MyApp_Chapter5/MyApp/myapp03.sql
   trunk/examples/Tutorial/MyApp_Chapter6/MyApp/myapp03.sql
   trunk/examples/Tutorial/MyApp_Chapter7/MyApp/myapp03.sql
   trunk/examples/Tutorial/MyApp_Chapter8/MyApp/myapp03.sql
   trunk/examples/Tutorial/MyApp_Chapter9_FormHandler/MyApp/myapp03.sql
Log:
add sql file for created/updated columns

Added: trunk/examples/Tutorial/MyApp_Chapter4/MyApp/myapp03.sql
===================================================================
--- trunk/examples/Tutorial/MyApp_Chapter4/MyApp/myapp03.sql	                        (rev 0)
+++ trunk/examples/Tutorial/MyApp_Chapter4/MyApp/myapp03.sql	2010-05-13 15:48:41 UTC (rev 13246)
@@ -0,0 +1,6 @@
+--
+-- Add 'created' and 'updated' columns to 'book' table.
+--
+ALTER TABLE book ADD created TIMESTAMP;
+ALTER TABLE book ADD updated TIMESTAMP;
+UPDATE book SET created = DATETIME('NOW'), updated = DATETIME('NOW');

Added: trunk/examples/Tutorial/MyApp_Chapter5/MyApp/myapp03.sql
===================================================================
--- trunk/examples/Tutorial/MyApp_Chapter5/MyApp/myapp03.sql	                        (rev 0)
+++ trunk/examples/Tutorial/MyApp_Chapter5/MyApp/myapp03.sql	2010-05-13 15:48:41 UTC (rev 13246)
@@ -0,0 +1,6 @@
+--
+-- Add 'created' and 'updated' columns to 'book' table.
+--
+ALTER TABLE book ADD created TIMESTAMP;
+ALTER TABLE book ADD updated TIMESTAMP;
+UPDATE book SET created = DATETIME('NOW'), updated = DATETIME('NOW');

Added: trunk/examples/Tutorial/MyApp_Chapter6/MyApp/myapp03.sql
===================================================================
--- trunk/examples/Tutorial/MyApp_Chapter6/MyApp/myapp03.sql	                        (rev 0)
+++ trunk/examples/Tutorial/MyApp_Chapter6/MyApp/myapp03.sql	2010-05-13 15:48:41 UTC (rev 13246)
@@ -0,0 +1,6 @@
+--
+-- Add 'created' and 'updated' columns to 'book' table.
+--
+ALTER TABLE book ADD created TIMESTAMP;
+ALTER TABLE book ADD updated TIMESTAMP;
+UPDATE book SET created = DATETIME('NOW'), updated = DATETIME('NOW');

Added: trunk/examples/Tutorial/MyApp_Chapter7/MyApp/myapp03.sql
===================================================================
--- trunk/examples/Tutorial/MyApp_Chapter7/MyApp/myapp03.sql	                        (rev 0)
+++ trunk/examples/Tutorial/MyApp_Chapter7/MyApp/myapp03.sql	2010-05-13 15:48:41 UTC (rev 13246)
@@ -0,0 +1,6 @@
+--
+-- Add 'created' and 'updated' columns to 'book' table.
+--
+ALTER TABLE book ADD created TIMESTAMP;
+ALTER TABLE book ADD updated TIMESTAMP;
+UPDATE book SET created = DATETIME('NOW'), updated = DATETIME('NOW');

Added: trunk/examples/Tutorial/MyApp_Chapter8/MyApp/myapp03.sql
===================================================================
--- trunk/examples/Tutorial/MyApp_Chapter8/MyApp/myapp03.sql	                        (rev 0)
+++ trunk/examples/Tutorial/MyApp_Chapter8/MyApp/myapp03.sql	2010-05-13 15:48:41 UTC (rev 13246)
@@ -0,0 +1,6 @@
+--
+-- Add 'created' and 'updated' columns to 'book' table.
+--
+ALTER TABLE book ADD created TIMESTAMP;
+ALTER TABLE book ADD updated TIMESTAMP;
+UPDATE book SET created = DATETIME('NOW'), updated = DATETIME('NOW');

Added: trunk/examples/Tutorial/MyApp_Chapter9_FormHandler/MyApp/myapp03.sql
===================================================================
--- trunk/examples/Tutorial/MyApp_Chapter9_FormHandler/MyApp/myapp03.sql	                        (rev 0)
+++ trunk/examples/Tutorial/MyApp_Chapter9_FormHandler/MyApp/myapp03.sql	2010-05-13 15:48:41 UTC (rev 13246)
@@ -0,0 +1,6 @@
+--
+-- Add 'created' and 'updated' columns to 'book' table.
+--
+ALTER TABLE book ADD created TIMESTAMP;
+ALTER TABLE book ADD updated TIMESTAMP;
+UPDATE book SET created = DATETIME('NOW'), updated = DATETIME('NOW');




More information about the Catalyst-commits mailing list