Add inital migration
This commit is contained in:
		
					parent
					
						
							
								df777f384d
							
						
					
				
			
			
				commit
				
					
						78294cb6a3
					
				
			
		
					 1 changed files with 40 additions and 0 deletions
				
			
		
							
								
								
									
										40
									
								
								opennebula_api/migrations/0001_initial.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								opennebula_api/migrations/0001_initial.py
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,40 @@ | ||||||
|  | # -*- coding: utf-8 -*- | ||||||
|  | # Generated by Django 1.9.4 on 2017-05-09 14:36 | ||||||
|  | from __future__ import unicode_literals | ||||||
|  | 
 | ||||||
|  | from django.db import migrations, models | ||||||
|  | import django.db.models.deletion | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | class Migration(migrations.Migration): | ||||||
|  | 
 | ||||||
|  |     initial = True | ||||||
|  | 
 | ||||||
|  |     dependencies = [ | ||||||
|  |     ] | ||||||
|  | 
 | ||||||
|  |     operations = [ | ||||||
|  |         migrations.CreateModel( | ||||||
|  |             name='VirtualMachine', | ||||||
|  |             fields=[ | ||||||
|  |                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||||||
|  |                 ('opennebula_id', models.IntegerField()), | ||||||
|  |             ], | ||||||
|  |         ), | ||||||
|  |         migrations.CreateModel( | ||||||
|  |             name='VirtualMachineTemplate', | ||||||
|  |             fields=[ | ||||||
|  |                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||||||
|  |                 ('opennebula_id', models.IntegerField()), | ||||||
|  |                 ('base_price', models.FloatField()), | ||||||
|  |                 ('memory_price', models.FloatField()), | ||||||
|  |                 ('core_price', models.FloatField()), | ||||||
|  |                 ('disk_size_price', models.FloatField()), | ||||||
|  |             ], | ||||||
|  |         ), | ||||||
|  |         migrations.AddField( | ||||||
|  |             model_name='virtualmachine', | ||||||
|  |             name='template', | ||||||
|  |             field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='opennebula_api.VirtualMachineTemplate'), | ||||||
|  |         ), | ||||||
|  |     ] | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue