Instructions for creating a table in the database
This commit is contained in:
		
							
								
								
									
										16
									
								
								db/install.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								db/install.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | |||||||
|  | <?xml version="1.0" encoding="UTF-8" ?> | ||||||
|  | <XMLDB PATH="blocks/local_webhooks/db" VERSION="20171022" COMMENT="XMLDB file for Moodle" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../lib/xmldb/xmldb.xsd"> | ||||||
|  |     <TABLES> | ||||||
|  |         <TABLE NAME="local_webhooks_service" COMMENT="A table for storing callback services."> | ||||||
|  |             <FIELDS> | ||||||
|  |                 <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true" /> | ||||||
|  |                 <FIELD NAME="enable" TYPE="int" LENGTH="2" NOTNULL="true" DEFAULT="0" SEQUENCE="false" /> | ||||||
|  |                 <FIELD NAME="title" TYPE="text" NOTNULL="true" SEQUENCE="false" /> | ||||||
|  |                 <FIELD NAME="url" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false" /> | ||||||
|  |             </FIELDS> | ||||||
|  |             <KEYS> | ||||||
|  |                 <KEY NAME="primary" TYPE="primary" FIELDS="id" /> | ||||||
|  |             </KEYS> | ||||||
|  |         </TABLE> | ||||||
|  |     </TABLES> | ||||||
|  | </XMLDB> | ||||||
		Reference in New Issue
	
	Block a user